giiPanic(3gii)

giiPanic3gii

Exit libgii programs for fatal errors

Usage

#include <ggi/gii.h>

void giiPanic(const char *format, ...); .SH "DESCRIPTION"

ggiPanic shuts down the application, closing all inputs, with printf(3) -style reporting to stderr, taking a format string and any additional variables.

giiPanic should only be used by usermode programs when something is really screwed, and they do not know what to do. The same applies for libraries, but might be used in rare situations such as corruption of critical data structures.

Examples

An unrecoverable error

if (my_important_struct->magic != MAGIC) {
	giiPanic("Fatal error: magic corrupted\n");
}

Releases

2 releases since Debian 2.2 (Potato); the text changed 1 time.

  1. 2.2
  2. 3.0

From libgii0-dev 1:0.8.1-1 in Debian 3.0 (Woody). Parsed by carta from the page's man source.