Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

tmpfile(3S)

tmpnam(3S)




mktemp(3C) mktemp(3C)
NAME mktemp - make a unique filename SYNOPSIS char *mktemp(template) char *template; DESCRIPTION The function mktemp alters the contents of the string refer- enced by *template so that it becomes a unique filename. The string at *template should be initialized to a filenamed with six trailing X characters; mktemp replaces the Xs with a letter and the current process ID. The letter is selected so that the resulting name is not a duplicate an existing file. RETURN VALUE mktemp returns the address of the unique (altered) filename. If a unique name cannot be created, template will point to a null (empty) string. SEE ALSO getpid(2), tmpfile(3S), tmpnam(3S). BUGS It is possible to run out of letters. April, 1990 1

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