MCPcopy Create free account
hub / github.com/NetHack/NetHack / main

Function main

win/share/thintile.c:100–125  ·  view source on GitHub ↗
(argc, argv)

Source from the content-addressed store, hash-verified

98 Fprintf(outfile, "}\n");
99}
100int
101main(argc, argv)
102int argc;
103char *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*/

Callers

nothing calls this directly

Calls 5

copy_colormapFunction · 0.85
write_thintileFunction · 0.85
fcloseFunction · 0.85
printfFunction · 0.85
read_txttileFunction · 0.70

Tested by

no test coverage detected