Unix/Linux Go Back    

Plan 9 - man page for tmpfile (plan9 section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

TMPFILE(2)									       TMPFILE(2)

       tmpfile, tmpnam - Stdio temporary files

       #include <stdio.h>

       FILE *tmpfile(void)

       char *tmpnam(char *s)

       Tmpfile	creates  a  temporary  file  that  will automatically be removed when the file is
       closed or the program exits.  The return value is a Stdio FILE* opened in update mode (see

       Tmpnam  generates  a string that is a valid file name and that is not the same as the name
       of an existing file.  If s is zero, it returns a pointer to a string which  may	be  over-
       written	by  subsequent calls to tmpnam.  If s is non-zero, it should point to an array of
       at least L_tmpnam (defined in <stdio.h>) characters, and the answer will be copied there.

	      template for tmpfile file names.

	      template for tmpnam file names.


       The files created by tmpfile are not removed until exits(2) is  executed;  in  particular,
       they are not removed on fclose or if the program terminates abnormally.

Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:42 PM.