1ARES_FREE_HOSTENT(3)       Library Functions Manual       ARES_FREE_HOSTENT(3)
2
3
4

NAME

6       ares_free_hostent - Free host structure allocated by ares functions
7

SYNOPSIS

9       #include <ares.h>
10
11       void ares_free_hostent(struct hostent *host)
12

DESCRIPTION

14       The  ares_free_hostent function frees a struct hostent allocated by one
15       of the functions  ares_parse_a_reply(3),  ares_parse_aaaa_reply(3),  or
16       ares_parse_ptr_reply(3).
17

NOTES

19       It  is  not  necessary  (and is not correct) to free the host structure
20       passed  to  the  callback  functions   for   ares_gethostbyname(3)   or
21       ares_gethostbyaddr(3).  c-ares will automatically free such host strucā€
22       tures when the callback returns.
23

SEE ALSO

25       ares_parse_a_reply(3),                        ares_parse_aaaa_reply(3),
26       ares_parse_ptr_reply(3), ares_parse_ns_reply(3)
27

AUTHOR

29       Greg Hudson, MIT Information Systems
30       Copyright 1998 by the Massachusetts Institute of Technology.
31
32
33
34                                 23 July 1998             ARES_FREE_HOSTENT(3)
Impressum