|
|
@ -21,23 +21,14 @@ ares_strerror \- Get the description of an ares library error code |
|
|
|
.nf |
|
|
|
.nf |
|
|
|
.B #include <ares.h> |
|
|
|
.B #include <ares.h> |
|
|
|
.PP |
|
|
|
.PP |
|
|
|
.B const char *ares_strerror(int \fIcode\fP, char **\fImemptr\fP) |
|
|
|
.B const char *ares_strerror(int \fIcode\fP) |
|
|
|
.fi |
|
|
|
.fi |
|
|
|
.SH DESCRIPTION |
|
|
|
.SH DESCRIPTION |
|
|
|
The |
|
|
|
The |
|
|
|
.B ares_strerror |
|
|
|
.B ares_strerror |
|
|
|
function gets the description of the ares library error code |
|
|
|
function gets the description of the ares library error code |
|
|
|
.IR code , |
|
|
|
.IR code , |
|
|
|
returning the result as a NUL-terminated C string. A pointer to |
|
|
|
returning the result as a NUL-terminated C string. |
|
|
|
allocated data necessary to compose the error description may be |
|
|
|
|
|
|
|
stored in the variable pointed to by |
|
|
|
|
|
|
|
.IR memptr . |
|
|
|
|
|
|
|
It is the caller's responsibility to invoke |
|
|
|
|
|
|
|
.BR ares_free_errmem (3) |
|
|
|
|
|
|
|
with the value of that variable when the error description is no |
|
|
|
|
|
|
|
longer needed. |
|
|
|
|
|
|
|
.SH SEE ALSO |
|
|
|
|
|
|
|
.BR ares_free_errmem (3) |
|
|
|
|
|
|
|
.SH AUTHOR |
|
|
|
.SH AUTHOR |
|
|
|
Greg Hudson, MIT Information Systems |
|
|
|
Greg Hudson, MIT Information Systems |
|
|
|
.br |
|
|
|
.br |
|
|
|