/* Demonstration of temporary filenames. */ #include main() { char buffer[10], *c; /* Get a temporary name in the defined buffer. */ tmpnam(buffer); /* Get another name, this time in the function's */ /* internal buffer. */ c = tmpnam(NULL); /* Display the names. */ printf("Temporary name 1: %s", buffer); printf("\nTemporary name 2: %s", c); return(0); }