void _main(){if(global_returns_t_or_f()){{char filename[MAX_PATH]="";FILE * tmp;if (GetTempFileNameA(".", NULL, 0, filename)==0){exit(1);}printLine(filename);tmp=fopen(filename, "wb+");if (tmp!=NULL) fclose(tmp);}}else{{char filename[MAX_PATH]="";int fd;if (GetTempFileNameA(".", NULL, 0, filename)==0){exit(1);}printLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file opened successfully");CLOSE(fd);}}}}
static void main(){if(global_returns_t_or_f()){{char filename[MAX_PATH]="";int fd;if (GetTempFileNameA(".", NULL, 0, filename)==0){exit(1);}printLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file opened successfully");CLOSE(fd);}}}else{{char filename[MAX_PATH]="";int fd;if (GetTempFileNameA(".", NULL, 0, filename)==0){exit(1);}printLine(filename);fd=OPEN(filename, O_CREAT|O_EXCL, S_IREAD|S_IWRITE);if (fd!=-1){printLine("Temporary file opened successfully");CLOSE(fd);}}}}