tld_get_z(3)

✨ NAME ✨

tld_get_z β€” it's an API function, bestie πŸ’… (from the libidn manual, section 3, iykyk)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tld.h>

int tld_get_z(const char * in, char ** out);

πŸŽ€ ARGUMENTS πŸŽ€

  • const char * in β€” a zero terminated character array that we're gonna process, okay? like, that's the whole vibe.
  • char ** out β€” a pointer to a zero terminated ascii result string. it's where the answer goes. main character energy, honestly.

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea β˜•: tld_get_z isolates the top-level domain of in and hands it back to you as an ASCII string in out. slay.

And the input string in? She's flexible, fr fr β€” it can be UTF-8, ISO-8859-1, or literally any ASCII compatible character encoding. she does not discriminate. periodt. πŸ’…

Return value: it gives you back TLD_SUCCESS when everything's cute and good, or the corresponding Tld_rc error code if it's not. no cap.


😭 REPORTING BUGS 😭

Found a bug? Not the vibe, but tell someone! Report bugs to <help-libidn@gnu.org>.

General guidelines for reporting bugs live over at https://www.gnu.org/gethelp/ β€” go read them, bestie 🫢

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. that's it, that's the rule, respect 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. πŸ¦‹ iconique.

As an alternative you may obtain the manual from:

https://www.gnu.org/software/libidn/manual/

okay that's the whole page, mwah πŸ’– this was tld_get_z(3) from the libidn manual, version 1.44, and yeah it really does say that up top and down at the bottom β€” consider yourself told, bestie πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from