MKTEMP(3C) DOMAIN/IX Reference Manual (SYS5) MKTEMP(3C)
NAME
mktemp - make a unique filename
USAGE
char *mktemp (template)
char *template;
DESCRIPTION
Mktemp replaces the contents of the string pointed to by
template with a unique filename, and returns the address of
template. The string in template looks like a filename with
six trailing Xs; mktemp will replace the Xs with a letter
and the current process ID. The letter is chosen so that
the resulting name does not duplicate an existing file.
NOTES
It is possible to run out of letters.
RELATED INFORMATION
getpid(2), tmpfile(3S), tmpnam(3S)
Printed 5/10/85 MKTEMP-1