Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tmpfile(3S) — NEXTSTEP 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fopen(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 bahaviour is undefined. 

RETURN VALUE

Tmpfile returns a pointer to the stream of the file that it created.  If the file cannot be created, tmpfile returns a null pointer. 

If it fails, errno is set to indicate the cause of the failure. 

SEE ALSO

fopen(3s)
 

ANSI C  —  June 23, 1989

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