mktemp(3C) mktemp(3C)
NAME
mktemp - make a unique filename
SYNOPSIS
char *mktemp (template)
char *template;
DESCRIPTION
mktemp replaces the contents of the string pointed to by
template with a unique filename; it returns the address of
template. The string in template should look like a
filename with six trailing Xs; mktemp replaces 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.
SEE ALSO
getpid(2), tmpfile(3S), tmpnam(3S).
BUGS
It is possible to run out of letters.
Page 1 (last mod. 1/14/87)