NAME

caterr_name - get the string representation of an error symbol

SYNOPSIS

#include <cat/cat.h>

const char *caterr_name(int retval);

DESCRIPTION

This function returns a string representation of the error symbol for the code, without the leading "CAT_". The function does not return NULL on a non-existing error, but instead returns "UNKNOWN".

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

EXAMPLE

The call:

  caterr_name(CAT_ENOTFOUND);

will return the string "ENOTFOUND".

SEE ALSO

cat, caterr