TMPFILE man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

TMPFILE(2)							    TMPFILE(2)

       tmpfile, tmpnam - Stdio temporary files

       #include <u.h>
       #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 fopen(2)).

       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 overwritten 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  exe‐
       cuted;  in particular, they are not removed on fclose or if the program
       terminates abnormally.

                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net