Older Newer
Sat, 11 Jan 2020 02:41:19 . . . . SyneRyder [Function definition]


Changes by last author:

Added:
= tmpfile =

== Syntax ==

FILE* tmpfile()

== Return ==

A file pointer to a newly opened temporary file.

== Description ==

Creates and opens a temporary file that is deleted when the file is closed.

== Example ==

<code>

%fml

OnFilterStart: {

void* newfile;

newfile = tmpfile();

if (!newfile) {

printf("Unable to create file.");

}

else {

// Do things with file here

fclose(newfile);

}

return false;

}

</code>

== See Also ==

fopen, fclose, tmpnam