TIFFWriteDirectory(3tiff)												 TIFFWriteDirectory(3tiff)

NAME
TIFFWriteDirectory - write the current directory in an open TIFF file SYNOPSIS
#include <tiffio.h> int TIFFWriteDirectory(TIFF* tif) Write the contents of the current directory to the file and set up to create a new subfile in the same file. Applications only need to call TIFFWriteDirectory when writing multiple subfiles to a single TIFF file. TIFFWriteDirectory is automatically called by TIFFClose and TIFF- Flush to write a modified directory if the file is open for writing. Diagnostics All error messages are directed to the TIFFError(3tiff) routine. Error post-encoding befoBeforeecwritingitthe contents of the current directory, any pending data is flushed. This message indicates that an error occurred while doing this. Error flushing data befoBeforeewritingrthe.contents of the current directory, any pending data is flushed. This message indicates that an error occurred while doing this. Cannot write directory, Therefwasanot enough space to allocate a temporary area for the directory that was to be written. Error writing directory Aowrite error occurred when writing the count of fields in the directory. Error writing directory Aowriteserror occurred when writing the directory fields. Error writing directory Aiwrite error occurred when writing the link to the next directory. Error writing data for fAewriteserror occurred when writing indirect data for the specified field. Error writing TIFF headeA.write error occurred when rewriting header at the front of the file. Error fetching directoryAcread.error occurred when fetching the directory count field for a previous directory. This can occur when setting up a link to the directory that is being written. Error fetching directoryAlread error occurred when fetching the directory link field for a previous directory. This can occur when setting up a link to the directory that is being written. 1 is returned when the contents are successfully written to the file. Otherwise, 0 is returned if an error was encountered when writing the directory contents. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWTiff | +-----------------------------+-----------------------------+ |Interface stability |Uncommitted | +-----------------------------+-----------------------------+ libtiff(3), TIFFError(3tiff), TIFFOpen(3tiff), TIFFReadDirectory(3tiff), TIFFSetDirectory(3tiff) This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004. 05 Apr 2004 TIFFWriteDirectory(3tiff)