home *** CD-ROM | disk | FTP | other *** search
- /* 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);
- }
-