Namespaces
Variants
Views
Actions

std::tmpfile

From cppreference.com
< cpp | io | c
Revision as of 14:50, 4 May 2012 by P12bot (Talk | contribs)

Template:cpp/io/c/sidebar

Defined in header <cstdio>
FILE *tmpfile();

Opens a temporary file. The file is opened as binary file for update ("wb+ mode). The filename of the file is guaranteed to be unique within the filesystem.

The file will be closed when the program exits.

Contents

Parameters

(none)

Return value

The associated file stream or NULL if an error has occurred

Example

See also

returns a unique filename
(function) [edit]