summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdio/fclose.34
1 files changed, 4 insertions, 0 deletions
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 ,