Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tmpfile(3S) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

creat(2)

unlink(2)

mktemp(3C)

perror(3C)

fopen(3S)

tmpnam(3S)

TMP4(3S)

NAME

tmpfile − create a temporary file

SYNOPSIS

#include <stdio.h>

FILE ∗tmpfile ()

DESCRIPTION

Tmpfile creates a temporary file by generating a name through tmpnam(3S), and returns a corresponding FILE pointer.  If the file cannot be opened, an error message is printed using perror(3C), and a NULL pointer is returned.  The file will automatically be deleted when the process using it terminates.  The file is opened for update ("wb+"). 

NOTES

On HP-UX the "wb+" mode is equivalent to the "w+" mode. 

SEE ALSO

creat(2), unlink(2), mktemp(3C), perror(3C), fopen(3S), tmpnam(3S). 

STANDARDS CONFORMANCE

tmpfile: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1, ANSI C

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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