2019-09-13 04:48:12 +11:00
|
|
|
/*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <pam.h>
|
|
|
|
|
|
|
|
#include "../floatimg.h"
|
|
|
|
|
|
|
|
int fimg_pnm_infos(char *);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int foo;
|
2019-09-13 23:34:56 +11:00
|
|
|
char *infile = "foo.pnm";
|
2019-09-13 04:48:12 +11:00
|
|
|
|
|
|
|
pnm_init(&argc, argv);
|
|
|
|
|
2019-09-13 23:34:56 +11:00
|
|
|
if (2 == argc) infile = argv[1];
|
|
|
|
|
|
|
|
foo = fimg_pnm_infos(infile);
|
2019-09-13 04:48:12 +11:00
|
|
|
fprintf(stderr, "got %d\n", foo);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
/* --------------------------------------------------------------------- */
|