MKTEMP(3C)
NAME
mktemp − make a unique file name
SYNOPSIS
char ∗mktemp (template)
char ∗template;
DESCRIPTION
Mktemp replaces template by a unique file name, and returns the address of the template. The template should look like a file name with six trailing Xs, which will be replaced with a letter and the current process ID. The letter will be chosen so that the resulting name does not duplicate an existing file.
SEE ALSO
BUGS
It is possible to run out of letters.