listings/chapter-2/tifftest.c
raw| 1 | /*********************************************************************** |
| 2 | * Code listing from "Advanced Linux Programming," by CodeSourcery LLC * |
| 3 | * Copyright (C) 2001 by New Riders Publishing * |
| 4 | * See COPYRIGHT for license information. * |
| 5 | ***********************************************************************/ |
| 6 | |
| 7 | #include <stdio.h> |
| 8 | #include <tiffio.h> |
| 9 | |
| 10 | int main (int argc, char** argv) |
| 11 | { |
| 12 | TIFF* tiff; |
| 13 | tiff = TIFFOpen (argv[1], "r"); |
| 14 | TIFFClose (tiff); |
| 15 | return 0; |
| 16 | } |