void _main(){{char * filename;FILE * tmp;filename=tempnam(NULL, NULL);printLine(filename);tmp=fopen(filename, "wb+");if (tmp!=NULL){printLine("Temporary file was opened...now closing file");fclose(tmp);}if (filename!=NULL){free(filename);}}}
static void main(){{char * filename;int fd;filename=tempnam(NULL, NULL);printLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file was opened...now closing file");CLOSE(fd);}if (filename!=NULL){free(filename);}}}