Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — AUX SR8.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

MKTEMP(3C)

NAME

mktemp − make a unique file name

SYNOPSIS

char ∗mktemp (template)
char ∗template;

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 Xs, which will be replaced with a letter and the current process ID.  The letter will be chosen so that the resulting name does not duplicate an existing file. 

SEE ALSO

getpid(2). 

BUGS

It is possible to run out of letters. 

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