NAME

caterr_typestr - get string representation of a major code

SYNOPSIS

#include <cat/cat.h>

const char *caterr_typestr(int major);

DESCRIPTION

This function returns a string that describes the major code major. The major codes are CAT_FATAL, CAT_ERROR, CAT_WARNING and CAT_DEBUG, as described in caterr.

This function never returns NULL, but instead returns "Unknown" on an invalid major code.

The error strings are statically allocated in the library and should not be manipulated or freed.

SEE ALSO

cat, caterr