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 Library Reference - <u>synopsis:</u> 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.

    Calling the flushall 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.

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, Netware

See Also:
    fopen, fflush

See Also: fflush

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