(argc, argv)
| 98 | Fprintf(outfile, "}\n"); |
| 99 | } |
| 100 | int |
| 101 | main(argc, argv) |
| 102 | int argc; |
| 103 | char *argv[]; |
| 104 | { |
| 105 | while (filenum < 3) { |
| 106 | tilecount_per_file = 0; |
| 107 | infile = fopen(tilefiles[filenum], RDTMODE); |
| 108 | outfile = fopen(thinfiles[filenum], WRTMODE); |
| 109 | copy_colormap(); |
| 110 | while (read_txttile()) { |
| 111 | write_thintile(); |
| 112 | tilecount_per_file++; |
| 113 | tilecount++; |
| 114 | } |
| 115 | fclose(outfile); |
| 116 | fclose(infile); |
| 117 | printf("%d tiles processed from %s\n", tilecount_per_file, |
| 118 | tilefiles[filenum]); |
| 119 | ++filenum; |
| 120 | } |
| 121 | printf("Grand total of %d tiles processed.\n", tilecount); |
| 122 | exit(EXIT_SUCCESS); |
| 123 | /*NOTREACHED*/ |
| 124 | return 0; |
| 125 | } |
| 126 | |
| 127 | /*thintile.c*/ |
nothing calls this directly
no test coverage detected