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 ofTld_tableinfo-structures for TLDs. orNULLif 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 calledtldup in the arguments and the docs describe the returned structure as corresponding totld_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:
- report bugs to <help-libidn@gnu.org>. π§
- general guidelines for reporting bugs: https://www.gnu.org/gethelp/ β read them, they're giving helpful, fr fr.
- GNU Libidn home page: https://www.gnu.org/software/libidn/ β go say hi. π
π COPYRIGHT π
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
- arch rolling: libidn 1.44-1 Β· GPL3 AND LGPL
- epel 10: libidn-devel 1.44-1.el10_3 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libidn-dev 1.44-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms