diff options
Diffstat (limited to 'contrib/tags/listtif.c')
-rw-r--r-- | contrib/tags/listtif.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/contrib/tags/listtif.c b/contrib/tags/listtif.c deleted file mode 100644 index 2ea12cea..00000000 --- a/contrib/tags/listtif.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * listtif.c -- lists a tiff file. - */ - -#include "xtiffio.h" -#include <stdlib.h> - -void main(int argc,char *argv[]) -{ - char *fname="newtif.tif"; - int flags; - - TIFF *tif=(TIFF*)0; /* TIFF-level descriptor */ - - if (argc>1) fname=argv[1]; - - tif=XTIFFOpen(fname,"r"); - if (!tif) goto failure; - - /* We want the double array listed */ - flags = TIFFPRINT_MYMULTIDOUBLES; - - TIFFPrintDirectory(tif,stdout,flags); - XTIFFClose(tif); - exit (0); - -failure: - printf("failure in listtif\n"); - if (tif) XTIFFClose(tif); - exit (-1); -} - |