TNFCTL_STRERROR(3TNF) TNF Library Functions TNFCTL_STRERROR(3TNF)

tnfctl_strerror - map a tnfctl error code to a string

cc [ flag ... ] file ... -ltnfctl [ library ... ]
#include <tnf/tnfctl.h>
const char * tnfctl_strerror(tnfctl_errcode_t errcode);

tnfctl_strerror() maps the error number in errcode to an error message string, and it returns a pointer to that string. The returned string should not be overwritten or freed.

tnfctl_strerror() returns the string "unknown libtnfctl.so error code" if the error number is not within the legal range.

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT Level MT-Safe

prex(1), TNF_PROBE(3TNF), libtnfctl(3TNF), tracing(3TNF), attributes(7)

March 4, 1997 OmniOS