adding a few small bugs

This commit is contained in:
2019-08-07 17:30:16 +02:00
parent cdd6c30f6d
commit 6258bd08ed
4 changed files with 28 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
int foo;
FloatImg fimg;
int datas[3];
char *fname = "foo.fimg";
verbosity = 1;
fimg_print_version(0);
@@ -25,9 +25,12 @@ fimg_printhead(&fimg);
fimg_describe(&fimg, "vroum");
// fimg_save_as_pnm(&fimg, "foo.pnm", 0);
foo = fimg_dump_to_file(&fimg, "foo.fimg", 0);
foo = fimg_dump_to_file(&fimg, fname, 0);
foo = fimg_fileinfos("foo.fimg", datas);
printf("%s : largeur %d hauteur %d type %d\n",
fname, datas[0], datas[1], datas[2]);
return 0;
}