Update.
[glibc.git] / stdio-common / temptest.c
blob35ea4dc80866846d700a223503d7cfafde178977
1 #include <stdio.h>
2 #include <string.h>
4 char *files[500];
6 int
7 main (int argc, char *argv[])
9 FILE *fp;
10 int i;
12 for (i = 0; i < 500; i++) {
13 files[i] = tempnam (NULL, "file");
14 if (files[i] == NULL) {
15 printf ("tempnam failed\n");
16 exit (1);
18 printf ("file: %s\n", files[i]);
19 fp = fopen (files[i], "w");
20 fclose (fp);
23 for (i = 0; i < 500; i++)
24 remove (files[i]);
26 exit (0);