up | Inhaltsverzeichniss | Kommentar

Manual page for mktemp(3C)

mktemp - make a unique file name

SYNOPSIS

#include <stdlib.h>

char *mktemp(char *template);

MT-LEVEL

Safe

DESCRIPTION

mktemp() 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 Xs; mktemp() will replace the Xs with a character string that can be used to create a unique file name.

RETURN VALUES

mktemp() will assign to template the empty string if it cannot create a unique name.

SEE ALSO

tmpfile.3s tmpnam.3s

NOTES

mktemp() can create only 26 unique file names per thread for each unique template.


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97