1tld_strerror(3) libidn tld_strerror(3)
2
3
4
6 tld_strerror - API function
7
9 #include <tld.h>
10
11 const char * tld_strerror(Tld_rc rc);
12
14 Tld_rc rc tld return code
15
17 Convert a return code integer to a text string. This string can be
18 used to output a diagnostic message to the user.
19
21 Successful operation. This value is guaranteed to always be zero, the
22 remaining ones are only guaranteed to hold non-zero values, for logical
23 comparison purposes.
24
26 Invalid character found.
27
29 No input data was provided.
30
32 Error during memory allocation.
33
35 Error during iconv string conversion.
36
38 No top-level domain found in domain string.
39
40 Return value: Returns a pointer to a statically allocated string con‐
41 taining a description of the error with the return code rc .
42
44 Report bugs to <bug-libidn@gnu.org>.
45 General guidelines for reporting bugs: http://www.gnu.org/gethelp/
46 GNU Libidn home page: http://www.gnu.org/software/libidn/
47
48
50 Copyright © 2002-2016 Simon Josefsson.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice and this notice are preserved.
54
56 The full documentation for libidn is maintained as a Texinfo manual.
57 If the info and libidn programs are properly installed at your site,
58 the command
59
60 info libidn
61
62 should give you access to the complete manual. As an alternative you
63 may obtain the manual from:
64
65 http://www.gnu.org/software/libidn/manual/
66
67libidn 1.34 tld_strerror(3)