|
NAMEfclose , fdclose ,
fcloseall —
close a stream
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <stdio.h>
int
int
void
DESCRIPTIONThefclose () function dissociates the named
stream from its underlying file or set of functions. If
the stream was being used for output, any buffered data is written first,
using
fflush(3).
The The RETURN VALUESfcloseall () does not return a value.
Upon successful completion the ERRORSfdclose () fails if:
The The NOTESThefclose () and fdclose ()
functions do not handle NULL arguments in the stream
variable; this will result in a segmentation violation. This is intentional.
It makes it easier to make sure programs written under
FreeBSD are bug free. This behaviour is an
implementation detail, and programs should not rely upon it.
SEE ALSOclose(2), fflush(3), fopen(3), setbuf(3)STANDARDSThefclose () function conforms to
ISO/IEC 9899:1990 (“ISO C90”).
HISTORYThefcloseall () function first appeared in
FreeBSD 7.0.
The
Visit the GSP FreeBSD Man Page Interface. |