fclose(3) Library Functions Manual fclose(3) fclose - (libc -lc) #include int fclose(FILE *stream); fclose() stream ( fflush(3)) . 0. EOF errno . ( fclose()) . EBADF stream . fclose() errno close(2) write(2) fflush(3). attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |fclose() | | MT-Safe | +------------+------------------------------------+--------------------+ C11, POSIX.1-2008. C89, POSIX.1-2001. fclose() C. sync(2) fsync(2). close(2), fcloseall(3), fflush(3), fileno(3), fopen(3), setbuf(3) 3 . . : . 6.18 21 2025 fclose(3)