std::tmpfile

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

FILE *tmpfile();

Opens a temporary file. The file will be closed when the program exits.

Contents

[edit] Parameters

(none)

[edit] Return value

the associated file stream or NULL if an error has occurred

[edit] Example

[edit] See also

tmpnam
returns an unique filename
(function)