Namespaces
Variants
Views
Actions

tmpfile

From cppreference.com
< c‎ | io
Revision as of 21:22, 2 November 2012 by P12bot (Talk | contribs)

Defined in header <stdio.h>
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

Template:c/io/dcl list tmpnam
C++ documentation for tmpfile