Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

tmpfile(3S)

tmpnam(3S)




mktemp(3C) mktemp(3C)
NAME mktemp - makes a unique filename SYNOPSIS char *mktemp(template) char *template; DESCRIPTION The function mktemp alters the contents of the string referenced by *template so that it becomes a unique filename. The string at *template should be initialized to a filename 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 does not duplicate an existing file. STATUS MESSAGES AND VALUES The mktemp program returns the address of the unique (altered) filename. If a unique name cannot be created, template will point to a null (empty) string. LIMITATIONS It is possible to run out of letters. SEE ALSO getpid(2), tmpfile(3S), tmpnam(3S) January 1992 1

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