FCLOSE(3S) UNIX Programmer's Manual FCLOSE(3S) NAME fclose, fflush - close or flush a stream SYNOPSIS #include int fclose (stream) FILE *stream; int fflush (stream) FILE *stream; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System V DESCRIPTION _F_c_l_o_s_e causes any buffers for the named _s_t_r_e_a_m to be emp- tied, and the file to be closed. Buffers allocated by the standard input/output system are freed. _F_c_l_o_s_e is performed automatically upon calling _e_x_i_t(2). _F_f_l_u_s_h causes any buffered data for the named output _s_t_r_e_a_m to be written to that file. The stream remains open. These functions return 0 for success, and EOF if any errors were detected. SEE ALSO close(2), fopen(3S), setbuf(3S).