getdns_display_ip_address(3)

getdns_display_ip_address3

Usage

#include <getdns.h>

char *
getdns_display_ip_address (const getdns_bindata *ipv4_or_ipv6_addr)

Library

DNS Resolver library (libgetdns, -lgetdns)

Overview

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

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11–13
  4. Arch

From getdns 1.7.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.