getdns_pretty_print_dict(3)
π getdns_pretty_print_dict β a getdns dict, but make it readable π
okay bestie, this is a page from the getdns manual, and it's about the lil glow-up function that turns your dict into a string you can actually look at. no cap.
β¨ NAME β¨
getdns_pretty_print_dict β return a string representation of a getdns dict π
π LIBRARY π
DNS Resolver library β that's libgetdns, and you link it with -lgetdns. periodt.
πΈ SYNOPSIS πΈ
#include <getdns.h>
char *
getdns_pretty_print_dict (const getdns_dict *this_dict)
π DESCRIPTION π
so this is a helper function, right? and what it does is return a string of nicely formatted data that includes all of the elements in the dict. every single one. the whole thing. it's giving "show me everything, but cute". π¦
this_dictβ the dictionary you want rendered as a string. yes, the one you're passing in. that one. π
π«Ά RETURN VALUES π«Ά
it hands you back a string, and β listen, this matters β the calling function must free it. and like, the way it was allocated is a whole thing: it uses the system allocator, not the user defined allocator. so free it accordingly, iykyk. π
and if something goes sideways? it returns NULL on error. no string, no vibes, just NULL. π
π EXAMPLES π
TBD
...yeah. that's literally it. the examples are to be determined. not me getting left on read by the documentation bestie. π
π SEE ALSO π
okay that's the whole page!! π this one came from getdns 1.7.3, dated December 2015 β iconic behavior from a manual page that's been serving since 2015, we stan. go forth and pretty-print, bestie πβ¨πΈ
π¦ where this page comes from
- alpine 3.24: getdns-doc 1.7.3-r0 Β· BSD-3-Clause
- arch rolling: getdns 1.7.3-2 Β· BSD
- epel 10: getdns-devel 1.7.3-9.el10_2 Β· BSD-3-Clause
- epel 9: getdns-devel 1.7.3-1.el9 Β· BSD-3-Clause
- fedora 43: getdns-devel 1.7.3-9.fc43 Β· BSD-3-Clause
- fedora 43: getdns-devel 1.7.3-9.fc43 Β· BSD-3-Clause
- fedora 44: getdns-devel 1.7.3-10.fc44 Β· BSD-3-Clause
- fedora 44: getdns-devel 1.7.3-10.fc44 Β· BSD-3-Clause
- nixpkgs unstable: getdns 1.7.3
- ubuntu resolute: libgetdns-dev 1.7.3-3 Β· BSD-3-Clause
- ubuntu stonking: libgetdns-dev 1.7.3-5build1 Β· BSD-3-Clause
- Copyright (c) 2013, NLnet Labs, Verisign, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms