.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TIFFCLOSE" "3tiff" "Jan 27, 2024" "4.5" "LibTIFF" .SH NAME TIFFClose \- close a previously opened TIFF file .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B void TIFFClose(TIFF *tif) .UNINDENT .INDENT 0.0 .TP .B void TIFFCleanup(TIFF *tif) .UNINDENT .SH DESCRIPTION .sp \fI\%TIFFClose()\fP closes a file that was previously opened with \fI\%TIFFOpen()\fP\&. Any buffered data are flushed to the file, including the contents of the current directory (if modified); and all resources are reclaimed. \fI\%TIFFClose()\fP calls \fI\%TIFFCleanup()\fP and then the associated function to close the file handle. .sp \fI\%TIFFCleanup()\fP is an auxiliary function to free the TIFF structure. The given structure will be completely freed, so you should save opened file handle and pointer to the close procedure in external variables before calling \fI\%TIFFCleanup()\fP, if you will need these ones to close the file. .SH DIAGNOSTICS .sp All error messages are directed to the \fI\%TIFFErrorExtR()\fP routine. Likewise, warning messages are directed to the \fI\%TIFFWarningExtR()\fP routine. .SH SEE ALSO .sp \fI\%libtiff\fP (3tiff), \fI\%TIFFOpen\fP (3tiff), \fI\%TIFFError\fP (3tiff) .SH AUTHOR LibTIFF contributors .SH COPYRIGHT 1988-2024, LibTIFF contributors .\" Generated by docutils manpage writer. .