reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ares_free_hostent.c
Go to the documentation of this file.
1
/* Copyright 1998 by the Massachusetts Institute of Technology.
2
*
3
* Permission to use, copy, modify, and distribute this
4
* software and its documentation for any purpose and without
5
* fee is hereby granted, provided that the above copyright
6
* notice appear in all copies and that both that copyright
7
* notice and this permission notice appear in supporting
8
* documentation, and that the name of M.I.T. not be used in
9
* advertising or publicity pertaining to distribution of the
10
* software without specific, written prior permission.
11
* M.I.T. makes no representations about the suitability of
12
* this software for any purpose. It is provided "as is"
13
* without express or implied warranty.
14
*/
15
16
17
#include <stdlib.h>
18
#include "
ares.h
"
19
20
#ifndef WIN32
21
#include <netdb.h>
22
#endif
23
24
void
ares_free_hostent
(
struct
hostent
*host)
25
{
26
char
**p;
27
28
free
(host->h_name);
29
for
(p = host->h_aliases; *p; p++)
30
free
(*p);
31
free
(host->h_aliases);
32
free
(host->h_addr_list[0]);
33
free
(host->h_addr_list);
34
free
(host);
35
}
ares.h
ares_free_hostent
void ares_free_hostent(struct hostent *host)
Definition
ares_free_hostent.c:24
list
void list()
Definition
userAdmin.cxx:66
rutil
dns
ares
ares_free_hostent.c
Generated by
1.9.8