Browse Source

error checking

master
tth 1 year ago
parent
commit
5f4e6e8fa8
  1. 5
      tools/fimg2text.c

5
tools/fimg2text.c

@ -35,7 +35,6 @@ else { @@ -35,7 +35,6 @@ else {
fp = stdout; /* XXX */
for (y=0; y<src->height; y+=steps) {
for (x=0; x<src->width; x+=steps) {
fimg_get_rgb(src, x, y, rgb);
fprintf(fp, "%d %d ", x, y);
fprintf(fp, "%f %f %f\n", rgb[0], rgb[1], rgb[2]);
@ -120,7 +119,9 @@ if (norm > 0.0) { @@ -120,7 +119,9 @@ if (norm > 0.0) {
}
foo = export_as_machinable(&fimg, dstname, steps, 0);
if (foo) {
fprintf(stderr,"%s: err %d on export\n", __func__, foo);
}
fimg_destroy(&fimg);
return 0;

Loading…
Cancel
Save