/[resiprocate]/main/contrib/ares/ares_free_hostent.3
ViewVC logotype

Contents of /main/contrib/ares/ares_free_hostent.3

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5295 - (show annotations) (download)
Mon Aug 22 00:30:05 2005 UTC (14 years, 3 months ago) by jason
File size: 1537 byte(s)
merged 5270:HEAD from b-directory-reorg
1 .\"
2 .\" Copyright 1998 by the Massachusetts Institute of Technology.
3 .\"
4 .\" Permission to use, copy, modify, and distribute this
5 .\" software and its documentation for any purpose and without
6 .\" fee is hereby granted, provided that the above copyright
7 .\" notice appear in all copies and that both that copyright
8 .\" notice and this permission notice appear in supporting
9 .\" documentation, and that the name of M.I.T. not be used in
10 .\" advertising or publicity pertaining to distribution of the
11 .\" software without specific, written prior permission.
12 .\" M.I.T. makes no representations about the suitability of
13 .\" this software for any purpose. It is provided "as is"
14 .\" without express or implied warranty.
15 .\"
16 .TH ARES_FREE_HOSTENT 3 "23 July 1998"
17 .SH NAME
18 ares_free_hostent \- Free host structure allocated by ares functions
19 .SH SYNOPSIS
20 .nf
21 .B #include <ares.h>
22 .PP
23 .B void ares_free_hostent(struct hostent *\fIhost\fP)
24 .fi
25 .SH DESCRIPTION
26 The
27 .I ares_free_hostent
28 function frees a
29 .B struct hostent
30 allocated by one of the functions
31 .I ares_parse_a_reply
32 or
33 .IR ares_parse_ptr_reply .
34 .SH SEE ALSO
35 .BR ares_parse_a_reply (3),
36 .BR ares_parse_ptr_reply (3)
37 .SH NOTES
38 It is not necessary (and is not correct) to free the host structure
39 passed to the callback functions for
40 .I ares_gethostbyname
41 or
42 .IR ares_gethostbyaddr .
43 The ares library will automatically free such host structures when the
44 callback returns.
45 .SH AUTHOR
46 Greg Hudson, MIT Information Systems
47 .br
48 Copyright 1998 by the Massachusetts Institute of Technology.

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27