Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

creat(2)

fopen(3S)

mktemp(3C)

perror(3C)

stdio(3S)

tmpnam(3S)

unlink(2)

TMPFILE(3S)  —  Stardent Computer Inc. (C Programming Language Utilities)

NAME

tmpfile − create 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.  If the file cannot be opened, an error message is printed using perror(3C), and a NULL pointer is returned.  The file is deleted automatically when the process using it terminates.  The file is opened for update ("w+"). 

SEE ALSO

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

September 29, 2021

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