Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 8
Flush the buffers for a stream
#include <stdio.h>
int fflush( FILE* fp );
- fp
- NULL, or the stream whose buffers you want to flush.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
If the stream specified by fp is open for output or update, the
fflush() function causes any buffered (see
setvbuf())
but unwritten data to be written to the file
descriptor associated with the stream (see
fileno()).
If the file specified by fp is open for input or update, the
fflush() function undoes the effect of any preceding
ungetc operation on the stream.
If fp is NULL, all open streams are flushed.
0 for success, or EOF if an error occurs
(errno is set).
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
printf( "Press Enter to continue..." );
fflush( stdout );
getchar();
return EXIT_SUCCESS;
}
ANSI,
POSIX 1003.1
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
errno,
fgetc(),
fgets(),
fileno(),
flushall(),
fopen(),
getc(),
gets(),
setbuf(),
setvbuf(),
ungetc()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 146
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fflush.html on line 146