From d1204d260f029316bea4c00223c0d320f5de4e38 Mon Sep 17 00:00:00 2001 From: eivind Date: Mon, 28 Sep 1998 15:34:24 +0000 Subject: Document that we will core-dump on getting a NULL pointer. --- lib/libc/stdio/fclose.3 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/libc/stdio/fclose.3 b/lib/libc/stdio/fclose.3 index 77f3316..3e3e0f5 100644 --- a/lib/libc/stdio/fclose.3 +++ b/lib/libc/stdio/fclose.3 @@ -80,6 +80,10 @@ for any of the errors specified for the routines .Xr close 2 or .Xr fflush 3 . +If passed a NULL argument, +.Fn fclose +will dump core. This is intentional, as it makes it easier to make +sure program written under FreeBSD are bug free. .Sh SEE ALSO .Xr close 2 , .Xr fflush 3 , -- cgit v1.1