tld_get_4z(3)

πŸ’– tld_get_4z β€” bestie's guide to pulling a TLD out of a string πŸ’–

okay so this is tld_get_4z(3) from libidn, and if you're here it's because you have a pile of unicode code points and you need the top-level domain out of it. say less, i got you 🫢


✨ NAME ✨

tld_get_4z β€” it's an API function, and it's literally here to isolate your top-level domain πŸ’…


🌸 SYNOPSIS 🌸

#include <tld.h>

int tld_get_4z(const uint32_t * in, char ** out);

πŸŽ€ ARGUMENTS πŸŽ€

  • const uint32_t * in β€” a zero terminated array of unicode code points to process. yeah, the whole uint32_t situation, that's the input, that's her ✨
  • char ** out β€” a zero terminated ascii result string pointer. this is where the glow-up lands πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does: it isolates the top-level domain of in and returns it as an ASCII string in out. that's it. that's the whole vibe. 🌈

Return value: it returns TLD_SUCCESS on success, or the corresponding Tld_rc error code otherwise. so like, if it's not TLD_SUCCESS, go read your Tld_rc and figure out what happened, bestie 😭

ngl, always check the return value. TLD_SUCCESS is the slay, everything else is a vibe check you gotta take seriously πŸ”₯

πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the cute kind? report it 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 Β© 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. periodt. πŸ’œ


🌟 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/

okay bestie that's the whole page 🧚 this was libidn 1.44, page tld_get_4z(3) β€” go forth and isolate those TLDs, you're gonna ate πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from