19 static const char *res_strings[] = {
33 [nmsg_res_container_full] =
"NMSG container is full",
34 [nmsg_res_container_overfull] =
"NMSG container is overfull",
35 [nmsg_res_errno] =
"consult errno"
38 static const char *res_unknown =
"(unknown libnmsg result code)";
43 val <=
sizeof(res_strings) /
sizeof(
char *) &&
44 res_strings[val] != NULL)
46 return (res_strings[val]);
nmsg header magic incorrect
const char * nmsg_res_lookup(enum nmsg_res val)
Look up a result code by value.
a pbuf is ready to be written
nmsg header version incorrect