Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
fflush(3)
Edit
PageHistory
Diff
Info
LikePages
FFLUSH !!!FFLUSH NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS NOTES CONFORMING TO SEE ALSO ---- !!NAME fflush - flush a stream !!SYNOPSIS __#include __ __int fflush(FILE *__''stream''__);__ !!DESCRIPTION The function __fflush__ forces a write of all user-space buffered data for the given output or update ''stream'' via the stream's underlying write function. The open status of the stream is unaffected. If the ''stream'' argument is __NULL__, __fflush__ flushes ''all'' open output streams. !!RETURN VALUE Upon successful completion 0 is returned. Otherwise, __EOF__ is returned and the global variable ''errno'' is set to indicate the error. !!ERRORS __EBADF__ ''Stream'' is not an open stream, or is not open for writing. The function __fflush__ may also fail and set ''errno'' for any of the errors specified for the routine write(2). !!NOTES Note that __fflush__() only flushes the user space buffers provided by the C library. To ensure that the data is physically stored on disk the kernel buffers must be flushed too, e.g. with sync(2) or fsync(2). !!CONFORMING TO The __fflush__ function conforms to ANSI X3.159-1989 (``ANSI C''). !!SEE ALSO write(2), fclose(3), fopen(3), fsync(2), sync(2), write(2), setbuf(3) ----
20 pages link to
fflush(3)
:
stdout(3)
pclose(3)
Man3f
fclose(3)
fcloseall(3)
fdopen(3)
fgetpos(3)
fseek(3)
fsetpos(3)
ftell(3)
rewind(3)
setbuf(3)
setbuffer(3)
setlinebuf(3)
setvbuf(3)
stdio(3)
freopen(3)
stdin(3)
popen(3)
fopen(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.