FILE* tmpfile()
A file pointer to a newly opened temporary file.
Creates and opens a temporary file that is deleted when the file is closed.
%fml OnFilterStart: { void* newfile; newfile = tmpfile(); if (!newfile) { printf("Unable to create file."); } else { // Do things with file here fclose(newfile); } return false; }