Example #1
0
 static unsafe int length(ares_txt_reply *reply)
 {
     int n = 0;
     for (ares_txt_reply *i = reply; i != null; i = i->next) {
         n++;
     }
     return n;
 }
Example #2
0
 static unsafe void free(ares_txt_reply *reply)
 {
     if (reply == null) {
         return;
     }
     free(reply->next);
     CAresChannel.ares_free_data((IntPtr)reply);
 }