TMPFILE(3S) INTERACTIVE UNIX System TMPFILE(3S)
NAME
tmpfile - create a temporary file
SYNOPSIS
#include <stdio.h>
FILE *tmpfile ()
DESCRIPTION
The tmpfile function creates a temporary file using a name
generated by tmpnam(3S), and returns a corresponding FILE
pointer. If the file cannot be opened, a NULL pointer is
returned. The file will automatically be deleted when the
process using it terminates. The file is opened for update
("w+").
SEE ALSO
creat(2), unlink(2), fopen(3S), mktemp(3C), stdio(3S),
tmpnam(3S).
Rev. C Software Development Set Page 1