Files
bind9/lib/isc/result.c
Bob Halley fda0ab6a96 add result
1998-10-14 22:35:04 +00:00

19 lines
339 B
C

#include <isc/result.h>
#define LAST_ENTRY ISC_R_NOMEMORY
static char *text_table[LAST_ENTRY+1] = {
"success",
"out of memory"
};
char *
isc_result_to_text(isc_result result) {
if (result == ISC_R_UNEXPECTED)
return ("unexpected error");
if (result > LAST_ENTRY)
return ("unknown result code");
return (text_table[result]);
}