Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkstemp(3C)

tmpfile(3S)

tmpnam(3S)

attributes(5)

mktemp(3C)

NAME

mktemp − make a unique file name

SYNOPSIS

#include <stdlib.h>

char ∗mktemp(char ∗template);

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 ’X’s; mktemp() will replace the ’X’s 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. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level Safe

SEE ALSO

mkstemp(3C), tmpfile(3S), tmpnam(3S), attributes(5)

NOTES

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

SunOS 5.6  —  Last change: 29 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026