void _main(){{wchar_t * filename;wchar_t * template=L"fnXXXXXX";FILE * tmp;filename=_wmktemp(template);printWLine(filename);tmp=_wfopen(filename, L"wb+");if (tmp!=NULL){printLine("Temporary file was opened...now closing file");fclose(tmp);}}}
static void main(){{wchar_t * filename;wchar_t * template=L"fnXXXXXX";int fd;filename=_wmktemp(template);printWLine(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);}}}