Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdio.h>
    int flushall( void );

Description:
    The flushall function clears all buffers associated with input streams
    and writes any buffers associated with output streams.  A subsequent
    read operation on an input file causes new data to be read from the
    associated file or device.

    The function is equivalent to calling the  fflush for all open stream
    files.

Returns:
    The flushall function returns the number of open streams.  When an
    output error occurs while writing to a file, the  errno global variable
    will be set.

See Also:
    fopen, fflush

Example:
    #include <stdio.h>

    void main()
      {
        printf( "The number of open files is %d\n",
                flushall() );
      }

    produces the following:

    The number of open files is 4

Classification:
    WATCOM

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson