renced by
    number with the numbering starting at 0.  Otherwise the
    <tt>TIFFReadDirectory</tt> and <tt>TIFFWriteDirectory</tt> routines can
    be used for sequential access to directories.
    For example, to count the number of directories in a file the following
    code might be used:
  </p>
  <p style="margin-left: 40px">
    <tt>#include "tiffio.h"<br>
    main(int argc, char* argv[])<br>
    {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;TIFF* tif = TIFFOpen(argv[1], "r");<br>
    &nbsp;&nbsp;&nbsp;&nbsp;if