/* Local Variables: */
char value[80], item[30];
int nitem, i;
/* See how many items are present (this also accesses the image). */
hdrNumb( "in", " ", "*", &nitem, istat );
for( i=1; i<=nitem; i++ ) {
/* Get the name of the I'th header item. */
hdrName( "in", source, i, item, 30, istat ); [1]
/* Get its value and print out the item name and value. */
hdrInC( "in", source, item, 1, value, 80, istat ); [1]
printf( "%s = %s \n", item, value );
}
The following notes refer to the numbered statements:
IMG Simple Image Data Access