1 #include "src/lib/mapread.h"
\r
7 main(int argc, char *argv[])
\r
11 loadmap("data/test.map", &map);
13 fprintf(stdout, "map.width= %d\n", map.width);
14 fprintf(stdout, "map.height= %d\n", map.height);
16 for(i=0; i<(map.width*map.height); i++)
18 fprintf(stdout, "%04d[%02d]", i, map.data[i]);
19 if(i && !(i%map.width)) fprintf(stdout, "\n");
21 fprintf(stdout, "\n");
23 fprintf(stdout, "&map==%Fp\n", &map);
24 fprintf(stdout, "&map.tiles==%Fp\n", map.tiles);
25 fprintf(stdout, "&map.width==%Fp\n", map.width);
26 fprintf(stdout, "&map.height==%Fp\n", map.height);
\r
27 fprintf(stdout, "&map.data==%Fp\n", map.data);