Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp(3C) — UNIX System III

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

MKTEMP(3C)  —  UNIX 3.0

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. 

May 16, 1980

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