Signed-off-by: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> --- man3/fclose.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man3/fclose.3 b/man3/fclose.3 index 1bdf0a5..6945e89 100644 --- a/man3/fclose.3 +++ b/man3/fclose.3 @@ -97,6 +97,10 @@ on disk the kernel buffers must be flushed too, for example, with .BR sync (2) or .BR fsync (2). +Also it's undefined behavior to call +.BR fclose () +with a NULL pointer. + .SH "SEE ALSO" .BR close (2), .BR fcloseall (3), -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html