fpurge(3) Library Functions Manual fpurge(3) fpurge, __fpurge - C (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 (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . fpurge(3)