Go to the first, previous, next, last section, table of contents.


tmpfile

Syntax

#include <stdio.h>

FILE *tmpfile(void);

Description

This function opens a temporary file. It will automatically be removed if the file is closed or when the program exits. The name of the file is generated by the same algorithm as described under tmpnam() (see section tmpnam).

Return Value

A newly opened file.

Portability

ANSI, POSIX

Example

FILE *tmp = tmpfile();


Go to the first, previous, next, last section, table of contents.