From b85b66caed4201958daac0353d63242ebffe6f46 Mon Sep 17 00:00:00 2001 From: tth Date: Mon, 16 Sep 2019 12:12:40 +0200 Subject: [PATCH] test proggy for libpnm funcs --- funcs/tpnm.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 funcs/tpnm.c diff --git a/funcs/tpnm.c b/funcs/tpnm.c new file mode 100644 index 0000000..0f90ab9 --- /dev/null +++ b/funcs/tpnm.c @@ -0,0 +1,28 @@ +/* + */ + +#include +#include +#include +#include + +#include "../floatimg.h" + +int fimg_pnm_infos(char *); + +/* --------------------------------------------------------------------- */ +int main(int argc, char *argv[]) +{ +int foo; +char *infile = "foo.pnm"; + +pnm_init(&argc, argv); + +if (2 == argc) infile = argv[1]; + +foo = fimg_pnm_infos(infile); +fprintf(stderr, "got %d\n", foo); + +return 0; +} +/* --------------------------------------------------------------------- */