Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tmpfile(3S) — NeXTSTEP 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fopen(3s)

TMPFILE(3S)  —  UNIX Programmer’s Manual

NAME

tmpfile − create a file to hold data temporarily

SYNOPSIS

#include <stdio.h>

FILE ∗tmpfile(void);

DESCRIPTION

Tmpfile creates a new file and opens it for output using binary update mode "wb+".  There is no way to access the temporary file by name.  The file is intended to be used only during the current program’s execution; it is automatically deleted upon program termination. 

RETURNS

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