Blame man/TIFFError.3tiff

Packit 85355f
.\" $Id: TIFFError.3tiff,v 1.3 2016-09-25 20:05:49 bfriesen Exp $
Packit 85355f
.\"
Packit 85355f
.\" Copyright (c) 1988-1997 Sam Leffler
Packit 85355f
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit 85355f
.\"
Packit 85355f
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit 85355f
.\" its documentation for any purpose is hereby granted without fee, provided
Packit 85355f
.\" that (i) the above copyright notices and this permission notice appear in
Packit 85355f
.\" all copies of the software and related documentation, and (ii) the names of
Packit 85355f
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit 85355f
.\" publicity relating to the software without the specific, prior written
Packit 85355f
.\" permission of Sam Leffler and Silicon Graphics.
Packit 85355f
.\" 
Packit 85355f
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit 85355f
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit 85355f
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit 85355f
.\" 
Packit 85355f
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit 85355f
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit 85355f
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit 85355f
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit 85355f
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit 85355f
.\" OF THIS SOFTWARE.
Packit 85355f
.\"
Packit 85355f
.if n .po 0
Packit 85355f
.TH TIFFError 3TIFF "October 15, 1995" "libtiff"
Packit 85355f
.SH NAME
Packit 85355f
TIFFError, TIFFSetErrorHandler \- library error handling interface
Packit 85355f
.SH SYNOPSIS
Packit 85355f
.B "#include <tiffio.h>"
Packit 85355f
.sp
Packit 85355f
.BI "void TIFFError(const char *" module ", const char *" fmt ", " ... ")"
Packit 85355f
.sp
Packit 85355f
.B "#include <stdarg.h>"
Packit 85355f
.sp
Packit 85355f
.BI "typedef void (*TIFFErrorHandler)(const char *" module ", const char *" fmt ", va_list " ap ");"
Packit 85355f
.br
Packit 85355f
.B "TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler handler);"
Packit 85355f
.SH DESCRIPTION
Packit 85355f
.I TIFFError
Packit 85355f
invokes the library-wide error handling function to (normally) write an error
Packit 85355f
message to the
Packit 85355f
.BR stderr .
Packit 85355f
The
Packit 85355f
.I fmt
Packit 85355f
parameter is a
Packit 85355f
.IR printf (3S)
Packit 85355f
format string, and any number arguments can be supplied. The
Packit 85355f
.I module
Packit 85355f
parameter, if non-zero, is printed before the message; it typically is used to
Packit 85355f
identify the software module in which an error is detected.
Packit 85355f
.PP
Packit 85355f
Applications that desire to capture control in the event of an error should
Packit 85355f
use
Packit 85355f
.IR TIFFSetErrorHandler
Packit 85355f
to override the default error handler.
Packit 85355f
A
Packit 85355f
.SM NULL
Packit 85355f
(0) error handling function may be installed to suppress error messages.
Packit 85355f
.SH "RETURN VALUES"
Packit 85355f
.IR TIFFSetErrorHandler
Packit 85355f
returns a reference to the previous error handling function.
Packit 85355f
.SH "SEE ALSO"
Packit 85355f
.BR TIFFWarning (3TIFF),
Packit 85355f
.BR libtiff (3TIFF),
Packit 85355f
.BR printf (3)
Packit 85355f
.PP
Packit 85355f
Libtiff library home page:
Packit 85355f
.BR http://www.simplesystems.org/libtiff/