.\"
.TH RESOLVER 3 2017-09-15 "GNU" "Linux Programmer's Manual"
.SH NAME
-res_ninit, res_nquery, res_nsearch, res_nquerydomain, res_nmkquery, res_nsend,
+res_ninit, res_nclose, res_nquery, res_nsearch, res_nquerydomain, res_nmkquery, res_nsend,
res_init, res_query, res_search, res_querydomain, res_mkquery, res_send,
dn_comp, dn_expand \- resolver routines
.SH SYNOPSIS
.PP
.BI "int res_ninit(res_state " statep );
.PP
+.BI "void res_nclose(res_state " statep );
+.PP
.BI "int res_nquery(res_state " statep ,
.BI " const char *" dname ", int " class ", int " type ,
.BI " unsigned char *" answer ", int " anslen );
.BR res_init ()
is normally executed by the first call to one of the
other functions.
+Every call to
+.BR res_ninit ()
+requires a corresponding call to
+.BR res_nclose ()
+to free memory allocated by
+.BR res_ninit ()
+and subsequent calls to
+.BR res_nquery ().
.PP
The
.BR res_nquery ()
Interface Attribute Value
T{
.BR res_ninit (),
+.BR res_nclose (),
.BR res_nquery (),
.br
.BR res_nsearch (),