1
2getdns_display_ip_address(3)        getdns        getdns_display_ip_address(3)
3
4
5

NAME

7       getdns_display_ip_address -- convert an getdns ip address to string
8
9

LIBRARY

11       DNS Resolver library (libgetdns, -lgetdns)
12
13

SYNOPSIS

15       #include <getdns.h>
16
17       char *
18       getdns_display_ip_address (const getdns_bindata *ipv4_or_ipv6_addr)
19
20

DESCRIPTION

22       This  helper  function returns a nicely formatted string representation
23       of the IPv4 or IPv6 address.  The length of the bindata is used to  de‐
24       termine whether the address is IPv4 or IPv6.
25
26
27       ipv4_or_ipv6_addr bindata of the address to print
28
29
30
31

RETURN VALUES

33       Returns  a string representation of the IP address (allocated using the
34       system allocator - malloc), the caller is responsible for  freeing  the
35       storage using free().
36
37

EXAMPLES

39       TBD
40
41

SEE ALSO

43       libgetdns(3)
44
45
46
47
48getdns 1.7.0                     December 2015    getdns_display_ip_address(3)
Impressum