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 of Tld_table info-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 😭


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