[<<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.ClipX.Net --- NG 2 HTML conversion by Dave Pearson