getdns_display_ip_address - Man Page

convert an getdns ip address to string

Library

DNS Resolver library (libgetdns, -lgetdns)

Synopsis

#include <getdns.h>

char *
getdns_display_ip_address (const getdns_bindata *ipv4_or_ipv6_addr)

Description

This helper function returns a nicely formatted string representation of the IPv4 or IPv6 address.  The length of the bindata is used to determine whether the address is IPv4 or IPv6.

ipv4_or_ipv6_addr bindata of the address to print

Return Values

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

Examples

TBD

See Also

libgetdns(3)

Info

December 2015 getdns 1.7.3