libtiff/html/man/TIFFError.3t.html

98 lines
2.3 KiB
HTML
Raw Normal View History

1999-11-22 23:29:23 -05:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML><HEAD><TITLE>Manpage of TIFFError</TITLE>
</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial">
<H1>TIFFError</H1>
Section: Misc. Reference Manual Pages (3T)<BR>Updated: October 15, 1995<BR><A HREF="#index">Index</A>
<BR><A HREF="index.html">Return to Main Contents</A>
<HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
TIFFError, TIFFSetErrorHandler - library error handling interface
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>#include &lt;<A HREF="file:/usr/include/tiffio.h">tiffio.h</A>&gt;</B>
<BR>
<B>void TIFFError(const char* module, const char* fmt, ...)</B>
<P>
<B>#include &lt;<A HREF="file:/usr/include/stdarg.h">stdarg.h</A>&gt;</B>
<BR>
<B>typedef void (*TIFFErrorHandler)(const char* module, const char* fmt, va_list ap);</B>
<BR>
<B>TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler handler);</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<I>TIFFError</I>
invokes the library-wide error handling function
to (normally) write an error message to the
<B>stderr</B>.
The
<I>fmt</I>
parameter is a
<I><A HREF="printf.3s.html">printf</A></I>(3S)
format string, and any number arguments can be supplied.
The
<I>module</I>
parameter, if non-zero, is printed before the message; it typically
is used to identify the software module in which an error
is detected.
<P>
Applications that desire to capture control in the event of an error
should use
<I>TIFFSetErrorHandler</I>
to override the default error handler.
A
<FONT SIZE="-1">NULL</FONT>
(0) error handling function may be installed to
suppress error messages.
<A NAME="lbAE">&nbsp;</A>
<H2>RETURN VALUES</H2>
<I>TIFFSetErrorHandler</I>
returns a reference to the previous error handling function.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<I><A HREF="libtiff.3t.html">libtiff</A></I>(3T),
<I><A HREF="TIFFWarning.3t.html">TIFFWarning</A></I>(3T),
<I><A HREF="printf.3s.html">printf</A></I>(3S)
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">RETURN VALUES</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="index.html">man2html</A>,
using the manual pages.<BR>
Time: 01:31:37 GMT, November 23, 1999
</BODY>
</HTML>