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 wholeuint32_tsituation, 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 π
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
- 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