firedns.h: always make ipv6 members available in state struct
[rofl0r-firedns.git] / man / firedns_aton4.3
blob2c23ed4575268eae2e0a29a3a8b6724116bc113b
1 .\" (C) 2002 Ian Gulliver
2 .TH firedns_aton4 3 2002-03-31
3 .SH NAME
4 firedns_aton4 \- convert a dotted quad IPv4 address to binary format
5 .SH SYNOPSIS
6 .B #include <firedns.h>
7 .br
8 .B -lfiredns
9 .LP
10 .BI "struct in_addr *firedns_aton4(const char * const " "ipstring" ")"
11 .br
12 .BI "struct in_addr *firedns_aton4_r(const char * const " "ipstring" ")"
13 .br
14 .BI "struct in_addr *firedns_aton4_s(const char * const " "ipstring" ", struct in_addr *" "ip" ")"
15 .SH DESCRIPTION
16 firedns_aton4() takes an IPv4 address in dotted quad notation in
17 .I ipstring
18 and returns a
19 .I struct in_addr
20 containing the address in binary format.
21 .SH RETURN VALUE
22 Returns a
23 .I struct in_addr
24 containing the IP address in binary form, or
25 .I NULL
27 .I ipstring
28 is not a valid IP.
29 .SH AUTHOR
30 Ian Gulliver <ian@penguinhosting.net>
31 .SH SEE ALSO
32 .BR libfiredns (3)