Copyright (C) 2000-2012 |
Manpages TMPFILESection: Linux Programmer's Manual (3 )Updated: 1993-04-03 Index Return to Main Contents NAMEtmpfile - create a temporary fileSYNOPSIS#include <stdio.h> FILE *tmpfile (void); DESCRIPTIONThe tmpfile() function generates a unique temporary filename using the path prefix P_tmpdir defined in <stdio.h>. The temporary file is then opened in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates.RETURN VALUEThe tmpfile() function returns a stream descriptor, or NULL if a unique filename cannot be generated or the unique file cannot be opened.ERRORS
CONFORMING TOSVID 3, POSIX, BSD 4.3, ISO 9899, SUSv2SEE ALSOmktemp(3), mkstemp(3), tmpnam(3), tempnam(3)
IndexThis document was created by man2html, using the manual pages. Time: 16:42:14 GMT, January 15, 2025 |