unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

TMPFILE(3S)                                                        TMPFILE(3S)



NAME
       tmpfile - create a temporary file

SYNOPSIS
       #include <&lt;stdio.h>&gt;

       FILE *tmpfile()

DESCRIPTION
       tmpfile()  creates  a  temporary  file  using  a name generated by tmp-
       nam(3S), and returns a corresponding FILE pointer.  If the file  cannot
       be  opened,  an  error  message  is printed using perror(3), and a NULL
       pointer is returned.  The file will automatically be deleted  when  the
       process using it terminates.  The file is opened for update ("w+").

SEE ALSO
       creat(2V), unlink(2V), fopen(3V), mktemp(3), perror(3), tmpnam(3S)



                                6 October 1987                     TMPFILE(3S)