1tld_get_z(3)                        libidn                        tld_get_z(3)
2
3
4

NAME

6       tld_get_z - API function
7

SYNOPSIS

9       #include <tld.h>
10
11       int tld_get_z(const char * in, char ** out);
12

ARGUMENTS

14       const char * in
15                   Zero terminated character array to process.
16
17       char ** out Zero terminated ascii result string pointer.
18

DESCRIPTION

20       Isolate the top-level domain of  in and return it as an ASCII string in
21       out .  The input string  in may be UTF-8, ISO-8859-1 or any ASCII  com‐
22       patible character encoding.
23
24       Return  value:  Return  TLD_SUCCESS  on  success,  or the corresponding
25       Tld_rc error code otherwise.
26

REPORTING BUGS

28       Report bugs to <help-libidn@gnu.org>.
29       General guidelines for reporting bugs: https://www.gnu.org/gethelp/
30       GNU Libidn home page: https://www.gnu.org/software/libidn/
31
32
34       Copyright © 2002-2022 Simon Josefsson.
35       Copying and distribution of this file, with  or  without  modification,
36       are  permitted in any medium without royalty provided the copyright no‐
37       tice and this notice are preserved.
38

SEE ALSO

40       The full documentation for libidn is maintained as  a  Texinfo  manual.
41       If  the  info  and libidn programs are properly installed at your site,
42       the command
43
44              info libidn
45
46       should give you access to the complete manual.  As an  alternative  you
47       may obtain the manual from:
48
49              https://www.gnu.org/software/libidn/manual/
50
51libidn                               1.41                         tld_get_z(3)
Impressum