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>
    FILE *tmpfile( void );

Description:
    The tmpfile function creates a temporary binary file that will
    automatically be removed when it is closed or at program termination.
     The file is opened for update.

Returns:
    The tmpfile function returns a pointer to the stream of the file that it
    created.  If the file cannot be created, the tmpfile function returns
    NULL.  When an error has occurred,  errno contains a value indicating
    the type of error that has been detected.

Example:
    #include <stdio.h>

    static FILE *TempFile;

    void main()
      {
        TempFile = tmpfile();
        /* . */
        /* . */
        /* . */
        fclose( TempFile );
      }

Classification:
    ANSI

Systems:
    All, Netware

See Also:
    fopen, freopen, _mktemp, _tempnam, tmpnam

See Also:

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