Avoid array-bounds warning for strncat on i586 (bug 20260)
[glibc.git] / stdio-common / temptest.c
blobc8cf8529f1e02ff53da9eb2158108693cc9d5400
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 char *files[500];
7 int
8 main (int argc, char *argv[])
10 FILE *fp;
11 int i;
13 for (i = 0; i < 500; i++) {
14 files[i] = tempnam (NULL, "file");
15 if (files[i] == NULL) {
16 printf ("tempnam failed\n");
17 exit (1);
19 printf ("file: %s\n", files[i]);
20 fp = fopen (files[i], "w");
21 fclose (fp);
24 for (i = 0; i < 500; i++)
25 remove (files[i]);
27 return 0;