HPUX tmpfile[3s]






 tmpfile(3S)                                                     tmpfile(3S)





 NAME
      tmpfile() - create a temporary file

 SYNOPSIS
      #include <stdio.h>

      FILE *tmpfile(void);

 DESCRIPTION
      tmpfile() creates a temporary file by generating a name through
      tmpnam() (see tmpnam(3S)), and returns a corresponding FILE pointer.
      If the file cannot be opened a NULL pointer is returned.  The file is
      automatically deleted when the process using it terminates.  The file
      is opened for update (wb+).

 NOTES
      On HP-UX systems, the wb+ mode is equivalent to the w+ mode.

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

 STANDARDS CONFORMANCE
      tmpfile(): AES, SVID2, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C































 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992