C++ Programming/Code/Standard C Library/Functions/tmpfile

From Wikibooks, open books for an open world
Jump to navigation Jump to search

tmpfile[edit | edit source]

Syntax
#include <cstdio>
FILE *tmpfile( void );

The function tmpfile() opens a temporary file with a unique filename and returns a pointer to that file. If there is an error, null is returned.

Related topics
tmpnam