---
name: "getdns_pretty_print_dict"
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_pretty_print_dict"
---

# getdns\_pretty\_print\_dict(3)

## NAME

**getdns\_pretty\_print\_dict** -- return a string representation of a getdns dict

## LIBRARY

DNS Resolver library (libgetdns, -lgetdns)

## SYNOPSIS

\#include \<getdns.h\>

char \*\
 **getdns\_pretty\_print\_dict** (const getdns\_dict \*this\_dict)

## DESCRIPTION

Helper function that returns a string of nicely formatted data including all of the elements in the dict.

*this\_dict* the dictionary to render as a string

## RETURN VALUES

Returns a string that the calling function must free (it is allocated using the  system allocator not the user defined allocator).  Returns NULL if there is an error.

## EXAMPLES

TBD

## SEE ALSO

[**getdns\_dict**(3)](/getdns_dict/3.md) [**libgetdns**(3)](/libgetdns/3.md)
