NAME

catgen_warn - generate warning message

SYNOPSIS

#include <cat/gen.h>

void catgen_warn(const char *func, int code, const char *fmt, ...);

DESCRIPTION

This function is a wrapper to caterr_error(), used to generate warnings. A warning is an error message of type CAT_WARNING.

func is the name of the issuer of the warning message, and usually comprises a dot-separated list of modules and function names, for example ``mymodule.myfunction''

code is the error that the function raising the error intends to return to its caller.

The fmt string and any other arguments comprise the error message, and these are as described for sprintf().

NOTES

The processing of the catgen_warn function is equivalent to calling:

  caterr_verror(NULL, func, CAT_WARNING, code, fmt, ...);

SEE ALSO

cat, caterr, catgen

caterr_error, caterr_verror, catgen_err, catgen_initdebug