/* The newly created directory will not exist on the file till TIFFWriteDirectory(), TIFFFlush() or TIFFClose() is called.  */
int TIFFCreateDirectory(TIFF *tif)
/* The newly created directory will not exist on the file till TIFFWriteDirectory(), TIFFFlush() or TIFFClose() is called.  */
int TIFFCreateDirectory(TIFF *tif)
{
	TIFFDefaultDirectory(tif);
	tif->tif_diroff = 0;
	tif->tif_nextdiroff = 0;
	tif->tif_curoff = 0;
	tif->tif_row = (uint32) -1;
	tif->tif_curstrip = (uint32) -1;
	return 0;
}