Amiga Unix — 68040 · 68060

Manual pages › Standard input and output (3S)

tmpfile(3S)

create a temporary file

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

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+").

SEE ALSO

creat(2),   open(2),   unlink(2),   fopen(3S),   mktemp(3C),
perror(3C), stdio(3S), tmpnam(3S).