---
name: "getdns_display_ip_address"
section: "3"
platform: "linux"
package: "getdns"
version: "1.7.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/getdns_display_ip_address"
---

# getdns\_display\_ip\_address(3)

## NAME

**getdns\_display\_ip\_address** -- 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)](/libgetdns/3.md)
