addsev(3C)

Name

addsev– define additional severities

Synopsis

#include <pfmt.h>
intaddsev(intint_val, const char *string);

Description

The addsev() function defines additional severities for use in subsequent calls to pfmt(3C) or lfmt(3C). It associates an integer value int_val
in the range [5-255] with a character string, overwriting any previous string association between int_val and string.

If int_val is OR-ed with the flags argument passed to subsequent calls to pfmt() or lfmt(), string
will be used as severity. Passing a null string removes the severity.

Return Values

Usage

Only the standard severities are automatically displayed for the locale in effect at runtime. An application must provide the means for displaying locale-specific versions of add-on severities. Add-on
severities are only effective within the applications defining them.