TMPNAM(3S) — UNIX Programmer’s Manual
NAME
tmpnam − generate unique file name
SYNOPSIS
#include <stdio.h>
char ∗tmpnam(char ∗s);
DESCRIPTION
Tmpnam generates a string that is a valid file name and is not the same as the name of an existing file. Tmpnam generates a different string each time it is called, up to TMP_MAX times. If called more than TMP_MAX times, the bahaviour is undefined.
RETURN VALUE
Tmpfile returns a pointer to the stream of the file that it created. If the file cannot be created, tmpfile returns a null pointer.
If it fails, errno is set to indicate the cause of the failure.
SEE ALSO
ANSI C — June 23, 1989