tmpfile [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Library Reference Manual
tmpfile
Creates a temporary file.
Syntax
#include <stdio.h>
FILE *tmpfile (void);
Parameters
None.
Return Values
x A pointer to a stream associated with the temporary
file.
NULL The file cannot be opened.
Description
The tmpfile function creates a temporary file using a name generated by
tmpnam() and returns a pointer to the resulting stream. The file is
automatically deleted when the process using it terminates.
[REV BEG]
If linking with the HP C/iX libraries, the file is opened for update as a
binary stream using wb+ mode.[REV END]
[REV BEG]
If linking with the POSIX/iX library, the file is opened for update as a
byte stream using the ws+ mode.[REV END]
See Also
tmpnam(), ANSI C 4.9.4.3, POSIX.1 8.1
MPE/iX 5.0 Documentation