NAME

caterr_str - get description of an error code as a string

SYNOPSIS

#include <cat/cat.h>

const char *caterr_str(int retval);

DESCRIPTION

This function returns a string describing the error code retval (error codes are described in cat). The function never returns NULL, even for unknown codes, but instead returns "Unknown error code".

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

SEE ALSO

cat, caterr