firedns.h: always make ipv6 members available in state struct
[rofl0r-firedns.git] / man / firedns_resolveip4.3
blob4cfaab2ab8ab9c6b464ed0bf403038222a5e35d2
1 .\" (C) 2002 Ian Gulliver
2 .TH firedns_resolveip4 3 2002-03-31
3 .SH NAME
4 firedns_resolveip4 \- Resolve a hostname to an IPv4 address
5 .SH SYNOPSIS
6 .B #include <firedns.h>
7 .br
8 .B -lfiredns
9 .LP
10 .BI "struct in_addr *firedns_resolveip4(const char * const " "name" ")"
11 .br
12 .BI "struct in_addr *firedns_resolveip4_r(const char * const " "name" ")"
13 .SH DESCRIPTION
14 firedns_resolveip4() attempts to resolve the hostname
15 .I name
16 to an IPv4 address.
17 .SH RETURN VALUE
18 Returns a pointer to an internal static
19 .I struct in_addr
20 that contains the IP address of
21 .I name
22 in binary format, or
23 .I NULL
24 on error.
25 .SH AUTHOR
26 Ian Gulliver <ian@penguinhosting.net>
27 .SH SEE ALSO
28 .BR libfiredns (3)