MKTEMP(3)
NAME
mktemp − make a unique filename
USAGE
char *mktemp(template) char *template;
DESCRIPTION
Mktemp generates and returns the address of a unique, usually temporary, filename based on template. The template should look like a filename with six trailing Xs, for example t = mktemp("/tmp/tfXXXXXX"); The Xs will be replaced with the current process ID and a unique letter.
NOTES
It is possible to run out of letters.