if (j == header.ncolors) { /* couldn't find it */
#ifdef PRINT_COLORMAP
- printf("color %2d: %3d %3d %3d\n", header.ncolors,
+ Fprintf(stdout, "color %2d: %3d %3d %3d\n", header.ncolors,
ColorMap[CM_RED][i], ColorMap[CM_GREEN][i],
ColorMap[CM_BLUE][i]);
#endif
}
merge_text_colormap();
count = convert_tiles(&curr_tb, header.ntiles);
- printf("%s: %lu tiles\n", fname, count);
+ Fprintf(stdout, "%s: %lu tiles\n", fname, count);
header.ntiles += count;
fclose_text_file();
}
Fprintf(fp, "\",\n");
}
- return fprintf(fp, "};\n") >= 0;
+ return Fprintf(fp, "};\n") >= 0;
}
#endif /* USE_XPM */
}
process_file(argv[i]);
}
- printf("Total tiles: %ld\n", header.ntiles);
+ Fprintf(stdout, "Total tiles: %ld\n", header.ntiles);
/* round size up to the end of the row */
if ((header.ntiles % header.per_row) != 0) {