NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RESTRICTIONS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libc.a #include <stdio.h>FILE *tmpfile(void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The tmpfile() function creates a temporary file using a name generated by tmpnam(3STDC), and returns a corresponding FILE pointer. If the file cannot be opened, an error message is printed using perror(3STDC), and a NULL pointer is returned. The file will automatically be deleted when the process using it terminates. The file is opened for update ("w+").
If a thread is deleted while performing tmpfile, it is possible that the temporary file will not be deleted when the program terminates.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RESTRICTIONS | ATTRIBUTES | SEE ALSO