tmpfile()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
 #include <stdio.h>
FILE *tmpfile(void);
Description

tmpfile() creates a new temporary file using mode "wb+". Temporary files automatically are deleted when they are closed or the application ends.

Return

A pointer to the file descriptor if the file could be created; NULL otherwise.

See also

fopen() and

tmpnam()