NAME

caterr_setfunc - set message output function

SYNOPSIS

#include <cat/cat.h>

caterr_func *caterr_setfunc(caterr_func *func);

DESCRIPTION

This function sets the error message output function to func. The CAT_DEFAULT_ERRFUNC constant reverts to the standard function as described in caterr.

The supplied callback must have the type:

typedef void caterr_func(int major_code, int retval, const char *message);

This function should be called only during initialization.

RETURN VALUE

Returns the previously installed message output function.

SEE ALSO

cat, caterr

NOTES

MT-level: Unsafe

This function may be called before cat_init().