tmpfile
Purpose
Creates a temporary file.
Library
Standard I/O Library (libc.a)
Syntax
#include <stdio.h>
FILE *tmpfile ( )
Description
The tmpfile subroutine creates a temporary file and
returns its FILE pointer. The file is opened for update.
If Distributed Services is installed on your system, this
file can reside on a remote node. The temporary file is
automatically deleted when the process using it termi-
nates.
If the file cannot be opened, tmpfile writes an error
message to the standard error output and returns a NULL
pointer.
Related Information
In this book: "creat," "unlink," "fopen, freopen,
fdopen," "mktemp," "standard i/o library," and "tmpnam,
tempnam."