1iv_fatal(3)               ivykis programmer's manual               iv_fatal(3)
2
3
4

NAME

6       iv_fatal,  iv_set_fatal_msg_handler - ivykis fatal error condition han‐
7       dling
8

SYNOPSIS

10       #include <iv.h>
11
12       void iv_fatal(const char *fmt, ...);
13       void iv_set_fatal_msg_handler(void (*handler)(const char *msg));
14

DESCRIPTION

16       iv_fatal aborts the running program, after possibly emitting  an  error
17       message. The fmt parameter is a printf(3)-style format string, the mes‐
18       sage to be logged.
19
20       If no handler is set (the default), the formatted message will be  sent
21       to  syslog,  with  critical  severity.  Otherwise the handler as set by
22       iv_set_fatal_msg_handler will be used instead.
23
24       iv_fatal is also used internally by ivykis, whenever a fatal  situation
25       is detected.
26
27       iv_set_fatal_msg_handler  can be used to set an alternative (as opposed
28       to syslog) function to call from iv_fatal, and its argument should be a
29       function  that does not return, and takes a single string as argument -
30       the formatted error message.
31

SEE ALSO

33       ivykis(3), iv_examples(3)
34
35
36
37ivykis                            2012-06-18                       iv_fatal(3)
Impressum