Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mktemp.bsd(3) — Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

MKTEMP(3)

NAME

mktemp − make a unique filename

USAGE

char *mktemp(template) char *template;

DESCRIPTION

Mktemp generates and returns the address of a unique, usually temporary, filename based on template. The template should look like a filename with six trailing Xs, for example t = mktemp("/tmp/tfXXXXXX"); The Xs will be replaced with the current process ID and a unique letter. 

NOTES

It is possible to run out of letters. 

RELATED INFORMATION

getpid(2)

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