1tld_get_z(3) libidn tld_get_z(3)
2
3
4
6 tld_get_z - extract top level domain part in input string
7
9 #include <tld.h>
10
11 int tld_get_z(const char * in, char ** out);
12
14 const char * in
15 Zero terminated character array to process.
16
17 char ** out Zero terminated ascii result string pointer.
18
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 compat‐
22 ible character encoding.
23
25 Return TLD_SUCCESS on success, or the corresponding Tld_rc error code
26 otherwise.
27
29 Report bugs to <bug-libidn@gnu.org>.
30
32 Copyright © 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
33 Permission is granted to make and distribute verbatim copies of this
34 manual provided the copyright notice and this permission notice are
35 preserved on all copies.
36
38 The full documentation for libidn is maintained as a Texinfo manual.
39 If the info and libidn programs are properly installed at your site,
40 the command
41
42 info libidn
43
44 should give you access to the complete manual.
45
46
47
48libidn 0.6.8 tld_get_z(3)