FCLOSE(3S) COMMAND REFERENCE FCLOSE(3S) NAME fclose, fflush - close or flush a stream SYNOPSIS #include <stdio.h> fclose(stream) FILE *stream; fflush(stream) FILE *stream; DESCRIPTION Fclose causes any buffers for the named stream to be emptied, and the file to be closed. Buffers allocated by the standard input/output system are freed. Fclose is performed automatically upon calling exit(3c). Fflush causes any buffered data for the named output stream to be written to that file. The stream remains open. DIAGNOSTICS These routines return 0 on successful completion and EOF if buffered data cannot be transferred to the file. SEE ALSO close(2), exit(3c), fopen(3s), and setbuf(3s). Printed 5/12/88 1
%%index%% na:312,92; sy:404,884; de:1288,697; di:1985,282; se:2267,209; %%index%%000000000095