Manual Page Result
0
Command: mktemp | Section: 3 | Source: UNIX v10 | File: mktemp.3
MKTEMP(3) Library Functions Manual MKTEMP(3)
NAME
mktemp, tmpnam - make a unique file name
SYNOPSIS
char *mktemp(template)
char *template;
#include <tmpnam.h>
char *tmpnam(s)
char s[L_tmpnam];
DESCRIPTION
Mktemp replaces template by a unique file name, and returns the address
of the template. The template should look like a file name with six
trailing which will be replaced with the current process id and a
unique letter.
Tmpnam places in the string pointed to by s a unique file name refer-
ring to the standard directory for temporary files and returns s. If s
is 0, tmpnam returns the address of a fixed internal buffer that con-
tains the name. (Note: it is bad form to leave files in the temporary
directory.)
SEE ALSO
getpid in getuid(2)
BUGS
After many calls to tmpnam, the resulting filenames may have strange
characters.
MKTEMP(3)