tmpfile, tmpnam – Stdio temporary files
char *tmpnam(char *s)
creates a temporary file that will automatically
be removed when the file is closed or the program exits.
The return value is a Stdio
opened in update mode (see
generates a string that is a valid file name and that is not
the same as the name of an existing file.
is zero, it returns a pointer to a string which may be overwritten by
subsequent calls to
is non-zero, it should point to an array of at least
characters, and the answer will be copied there.
The files created by
are not removed until
is executed; in particular, they are not removed on
or if the program terminates abnormally.