MKTEMP(3C) DOMAIN/IX SYS5 MKTEMP(3C)
NAME
mktemp - make a unique filename
USAGE
char *mktemp(template)
char *template;
DESCRIPTION
Mktemp generates and returns the address of a unique, usu-
ally temporary, filename based on template. The template
should look like a filename with six trailing Xs, for exam-
ple
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.
RELATED INFORMATION
getpid(2)
Printed 12/4/86 MKTEMP-1