mktemp(3C)
NAME
mktemp - make a unique file name
SYNOPSIS
#include <stdlib.h>
char *mktemp(char *template);
DESCRIPTION
The mktemp() function replaces the contents of the string
pointed to by template with a unique file name, and returns
template. The string in template should look like a file
name with six trailing 'X's; mktemp() will replace the 'X's
with a character string that can be used to create a unique
file name. Only 26 unique file names per thread can be
created for each unique template.
RETURN VALUES
The mktemp() function will assign to template the empty
string if it cannot create a unique name.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
mkstemp(3C), tmpfile(3C), tmpnam(3C), attributes(5)
Man(1) output converted with
man2html