tmpfile(3S) tmpfile(3S)
NAME
tmpfile - create a temporary file
SYNOPSIS
#include <stdio.h>
FILE *tmpfile (void);
DESCRIPTION
tmpfile creates a temporary file using a name generated by the
tmpnam routine and returns a corresponding FILE pointer. If
the file cannot be opened, a NULL pointer is returned. The
file is automatically deleted when the process using it
terminates or when the file is closed. The file is opened for
update ("w+").
REFERENCES
creat(2), fopen(3S), mktemp(3C), open(2), perror(3C),
stdio(3S), tmpnam(3S), unlink(2)
Copyright 1994 Novell, Inc. Page 1