MKTEMP(S) XENIX System V MKTEMP(S)
Name
mktemp - Makes a unique filename.
Syntax
char *mktemp(template)
char *template;
Description
mktemp replaces template with a unique filename and returns
the address of template. The template should look like a
filename with six trailing X's, which will be replaced with
the current process ID preceded by a letter. The letter
will be chosen so that the resulting name does not duplicate
an existing file.
See Also
getpid(S), tmpfile(S), tmpnam(S)
Notes
It is possible to run out of letters.
Page 1 (printed 8/7/87)