tld_get_table(3)
π tld_get_table(3) π
okay bestie, welcome to the libidn section of the manual, and today's main character is tld_get_table β she's an API function and she is so chill. let's get into it π¦
β¨ NAME β¨
tld_get_table β API function. that's it, that's the name, short and iconic π
β¨ SYNOPSIS β¨
#include <tld.h>
const Tld_table * tld_get_table(const char * tld, const Tld_table **
tables);
β¨ ARGUMENTS β¨
const char * tldβ the TLD name, like"com", written as a zero terminated ASCII byte string. yes bestie, plain old ASCII, she's lowkey vintage but she works πconst Tld_table ** tablesβ a zero terminated array ofTld_tableinfo-structures for TLDs. it's giving "pile of structs, and the pile knows where it ends" πΈ
β¨ DESCRIPTION β¨
Get the TLD table for a named TLD by searching through the given TLD table array. that's the whole vibe: you hand her a name, you hand her a list, she goes thru the list looking for the match πβ¨
Return value: she returns the structure corresponding to TLD tld by going thru tables, or she returns NULL if no such structure is found. no match? NULL. don't be dramatic about it, just check for NULL fr fr π
β¨ DESCRIPTION β¨
(okay so this one is literally the same as above, the manpage just said it twice and I'm nothing if not faithful to the source π)
Get the TLD table for a named TLD by searching through the given TLD table array.
Return value: Return structure corresponding to TLD tld by going thru tables, or return NULL if no such structure is found.
β¨ REPORTING BUGS β¨
found a bug? bestie, tell the devs, don't just suffer in silence π
- Report bugs to <help-libidn@gnu.org>.
- General guidelines for reporting bugs: https://www.gnu.org/gethelp/
- GNU Libidn home page: https://www.gnu.org/software/libidn/
β¨ 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. slay, that's a genuinely generous license, we love to see it π
β¨ 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/
and that's the whole page bestie!! π«Ά this was libidn, version 1.44, and honestly she ate. go read the Texinfo manual if you want more, and remember: always check for NULL πβ¨πΈ
π¦ 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