]>
Commit | Line | Data |
---|---|---|
28f540f4 | 1 | #include <stdio.h> |
3e1f480e | 2 | #include <stdlib.h> |
28f540f4 RM |
3 | #include <string.h> |
4 | ||
5 | char *files[500]; | |
6 | ||
7 | int | |
11336c16 | 8 | main (int argc, char *argv[]) |
28f540f4 | 9 | { |
28f540f4 RM |
10 | FILE *fp; |
11 | int i; | |
12 | ||
13 | for (i = 0; i < 500; i++) { | |
d705269e UD |
14 | files[i] = tempnam (NULL, "file"); |
15 | if (files[i] == NULL) { | |
16 | printf ("tempnam failed\n"); | |
28f540f4 RM |
17 | exit (1); |
18 | } | |
d705269e UD |
19 | printf ("file: %s\n", files[i]); |
20 | fp = fopen (files[i], "w"); | |
28f540f4 RM |
21 | fclose (fp); |
22 | } | |
23 | ||
24 | for (i = 0; i < 500; i++) | |
25 | remove (files[i]); | |
26 | ||
bf4de8f3 | 27 | return 0; |
28f540f4 | 28 | } |