getdns_pretty_print_dict(3)

πŸ“¦
version 1.7.3 Β· 2 versions
, in alpine 3.24, arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ’–βœ¨πŸŒΈ