#include <stdio.h> int main () { char buffer[L_tmpnam]; char *pointer; tmpnam (buffer); printf ("Temp file name #1: %s\n",buffer); pointer = tmpnam (NULL); printf ("Temp file name #2: %s\n",pointer); return 0; }