Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tmpfile(3S)

TMPNAM(3S)  —  UNIX Programmer’s Manual

NAME

tmpnam − generate unique file name

SYNOPSIS

#include <stdio.h>

char ∗tmpnam(char ∗s);

DESCRIPTION

Tmpnam generates a string that is a valid file name and is not the same as the name of an existing file.  Tmpnam generates a different string each time it is called, up to TMP_MAX times.  If called more than TMP_MAX times, the behavior is undefined. 

RETURN VALUE

If the argument is a null pointer, tmpnam leaves its result in an internal static object and returns a pointer to that object.  Subsequent calls to tmpnam will modify this object.  If the argument is not a null pointer, it is assumed to point to an array of at least L_tmpnam characters; the tmpnam function writes its result in that array and returns the argument as its value. 

SEE ALSO

tmpfile(3S)
 

ANSI C  —  August 1, 1992

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