tld_default_table(3)

πŸ’– tld_default_table β€” like, the manual page for it, bestie πŸ’–

okay so real talk, this is tld_default_table(3) from the libidn manual (section 3, devs only, iykyk). she's an API function and she's here to hand you a TLD table and honestly? she ate. ✨


🌸 NAME 🌸

tld_default_table β€” API function. that's it, that's the name, periodt. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <tld.h>

const Tld_table * tld_default_table(const char * tld, const Tld_table **
overrides);

look at her. two args. no drama. πŸ¦‹


✨ ARGUMENTS ✨

  • const char * tld β€” the TLD name, like "com", as a zero terminated ASCII byte string. yes bestie, zero terminated, do not forget the terminator or it's giving undefined chaos 😭
  • const Tld_table ** overrides β€” an additional zero terminated array of Tld_table info-structures for TLDs. or NULL if you just wanna use the library default tables and nothing else. no notes, valid, iconic. 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so what does she do. she gets you the TLD table for a named TLD, using the internal defaults, and possibly overridden by the (optional) supplied tables. that's the whole vibe. 🌈

Return value: she returns the structure corresponding to the TLD tld_str, first looking through overrides then thru the built-in list β€” or NULL if no such structure was found. so if you get NULL, that's not a glitch bestie, that's just genuinely not a thing. πŸ’€

heads up: the parameter is called tld up in the arguments and the docs describe the returned structure as corresponding to tld_str β€” that's literally what the page says, so don't come for me, I'm just the messenger πŸ™ˆ

πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence, tell the girlies:


Copyright Β© 2002-2026 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: keep the notice, keep the vibes, no royalty required, slay. πŸ’…)


πŸ”₯ SEE ALSO πŸ”₯

the full documentation for libidn is maintained as a Texinfo manual. if the info and libidn programs are properly installed at your site, the command

info libidn

should give you access to the complete manual. as an alternative you may obtain the manual from:

https://www.gnu.org/software/libidn/manual/

go read it, bestie, it's lowkey the whole lore. πŸ“šβœ¨


okay that's the whole page, mwah. this was libidn, version 1.44, and yeah it's the tld_default_table(3) page β€” thank you for coming to my ted talk, drink water, compile with warnings on, bye bestie πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from