tmpnam()
Creates temporary file names.
Synopsis
string tmpnam();
Parameters
Parameter | Description |
---|---|
none | - |
Description
The function returns a unique temporary file name and a file path that can be used.
Example
Creates a new (empty) temporary file.
main()
{
file f;
f=fopen(tmpnam(), "w"); // Guaranteed "new" file
fclose(f);
}
Assignment
File function
Availability
CTRL