fflush(3) Library Functions Manual fflush(3) fflush - LIBRARY Standard C library (libc, -lc) #include int fflush(FILE *_Nullable stream); fflush() stream . , , (, , ), fflush() , , . . stream NULL, fflush() . unlocked_stdio(3). . EOF errno . EBADF stream . fflush() errno write(2). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |fflush() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. C89, POSIX.1-2001, POSIX.1-2008. POSIX.1-2001 , POSIX.1-2008. , fflush() , . , , , , sync(2) fsync(2). . fsync(2), sync(2), write(2), fclose(3), fileno(3), fopen(3), fpurge(3), setbuf(3), unlocked_stdio(3) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . fflush(3)