home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tyc
/
list1611.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-16
|
436b
|
23 lines
/* Demonstration of temporary filenames. */
#include <stdio.h>
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);
}