fpurge(3) Library Functions Manual fpurge(3) fpurge, __fpurge - LIBRARY Standard C library (libc, -lc) /* */ #include int fpurge(FILE *stream); /* */ #include #include void __fpurge(FILE *stream); fpurge() . . , , getc(3), , , ungetc(3). fflush(3). __fpurge() , . Upon successful completion fpurge() returns 0. On error, it returns -1 and sets errno to indicate the error. EBADF stream . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |__fpurge() | | MT-Safe race:stream | +----------------------------+----------------------------------------------------------+--------------------------+ None. fpurge() 4.4BSD. Not available under Linux. __fpurge() Solaris, glibc 2.1.95. , . . fflush(3), setbuf(3), stdio_ext(3) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . fpurge(3)