Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpid(2)

tmpfile(3)

tmpnam(3)

mktemp(3)

Name

mktemp − make a unique file name

Syntax

char *mktemp(template)
char *template;

Description

The mktemp subroutine 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 X’s, which will be replaced with the current process ID and a unique letter. 

Note: The use of mktemp is not recommended for new applications.  See tmpnam() for less error-prone alternatives.

See Also

getpid(2), tmpfile(3), tmpnam(3)

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