FloatImg4PythonBinding/funcs/tpnm.c

31 lines
566 B
C
Raw Normal View History

2019-09-16 21:12:40 +11:00
/*
2024-05-02 06:38:19 +11:00
* testbed for using the Netpbm library
2019-09-16 21:12:40 +11:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
2024-05-02 06:38:19 +11:00
#include <pam.h> /* Portable Any Map */
2019-09-16 21:12:40 +11:00
#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;
}
/* --------------------------------------------------------------------- */