Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tmpfile(3S) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

creat(2)

unlink(2)

fopen(3S)

mktemp(3C)

perror(3C)

tmpnam(3S)




tmpfile(3S) tmpfile(3S)
NAME tmpfile - creates a temporary file SYNOPSIS #include <stdio.h> FILE *tmpfile() DESCRIPTION tmpfile creates a temporary file using a name generated by tmpnam(3S), and returns a corresponding FILE pointer. The file is automatically deleted when the process using it terminates. The file is opened for update (``w+''). tmpfile calls fopen and so returns any error code passed to it from fopen. STATUS MESSAGES AND VALUES If the temporary file cannot be opened, an error message is printed using perror(3C), and a NULL pointer is returned. SEE ALSO creat(2), unlink(2), fopen(3S), mktemp(3C), perror(3C), tmpnam(3S) January 1992 1

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