   &nbsp;&nbsp;&nbsp;&nbsp;}<br>
    &nbsp;&nbsp;&nbsp;&nbsp;exit(0);<br>
    }</tt>
  </p>
  <p>
    Finally, note that there are several routines for querying the
    directory status of an open file:
    <tt>TIFFCurrentDirectory</tt> returns the index of the current
    directory and
    <tt>TIFFLastDirectory</tt> returns an indication of whether the
    current directory is the last directory in a file.
    There is also a routine, <tt>TIFFPrintDirectory</tt>, that can
    be called to print a formatted