1TIFFWarning(3TIFF) TIFFWarning(3TIFF)
2
3
4
6 TIFFWarning, TIFFSetWarningHandler - library warning interface
7
9 #include <tiffio.h>
10
11 void TIFFWarning(const char *module, const char *fmt, ...)
12
13 #include <stdarg.h>
14
15 typedef void (*TIFFWarningHandler)(const char *module, const char *fmt,
16 va_list ap);
17
18 TIFFWarningHandler TIFFSetWarningHandler(TIFFWarningHandler handler);
19
21 TIFFWarning invokes the library-wide warning handler function to (nor‐
22 mally) write a warning message to the stderr. The fmt parameter is a
23 printf(3S) format string, and any number arguments can be supplied. The
24 module parameter is interpreted as a string that, if non-zero, should
25 be printed before the message; it typically is used to identify the
26 software module in which a warning is detected.
27
28 Applications that desire to capture control in the event of a warning
29 should use TIFFSetWarningHandler to override the default warning han‐
30 dler. A NULL (0) warning handler function may be installed to suppress
31 error messages.
32
34 TIFFSetWarningHandler returns a reference to the previous error han‐
35 dling function.
36
38 TIFFError(3TIFF), libtiff(3TIFF), printf(3)
39
40 Libtiff library home page: http://www.simplesystems.org/libtiff/
41
42
43
44libtiff October 15, 1995 TIFFWarning(3TIFF)