1giiPanic(3)                           GGI                          giiPanic(3)
2
3
4

NAME

6       giiPanic : Exit LibGII programs for fatal errors
7

SYNOPSIS

9       #include <ggi/gii.h>
10
11       int giiPanic(const char * format, ...);
12
13

DESCRIPTION

15       ggiPanic(3)  shuts  down  the  application,  closing  all  inputs, with
16       printf(3)-style reporting to stderr, taking a  format  string  and  any
17       additional variables.
18
19       giiPanic  should  only  be  used by usermode programs when something is
20       really screwed, and they do not know what to do. The same  applies  for
21       libraries,  but  might be used in rare situations such as corruption of
22       critical data structures.
23

EXAMPLES

25       An unrecoverable error:
26
27       if (my_important_struct->magic != MAGIC) {
28         giiPanic("Fatal error: magic corrupted\n");
29       }
30
31
32
33
34libgii-1.0.x                      2006-12-30                       giiPanic(3)
Impressum