From 8bd4c21699ff39f158bd4b86603b98202ff06883 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Mon, 28 Sep 1998 15:34:24 +0000 Subject: [PATCH] Document that we will core-dump on getting a NULL pointer. --- lib/libc/stdio/fclose.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/stdio/fclose.3 b/lib/libc/stdio/fclose.3 index 77f331612df6..3e3e0f5d656d 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 ,