1tld_strerror(3)                     libidn                     tld_strerror(3)
2
3
4

NAME

6       tld_strerror - API function
7

SYNOPSIS

9       #include <tld.h>
10
11       const char * tld_strerror(Tld_rc rc);
12

ARGUMENTS

14       Tld_rc rc   tld return code
15

DESCRIPTION

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

TLD_SUCCESS

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

TLD_INVALID

26       Invalid character found.
27

TLD_NODATA

29       No input data was provided.
30

TLD_MALLOC_ERROR

32       Error during memory allocation.
33

TLD_ICONV_ERROR

35       Error during iconv string conversion.
36

TLD_NO_TLD

38       No top-level domain found in domain string.
39

RETURN VALUE

41       Returns a  pointer  to  a  statically  allocated  string  containing  a
42       description of the error with the return code rc.
43

REPORTING BUGS

45       Report   bugs   to   <bug-libidn@gnu.org>.    GNU   Libidn  home  page:
46       http://www.gnu.org/software/libidn/ General help  using  GNU  software:
47       http://www.gnu.org/gethelp/
48
50       Copyright © 2002-2013 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

SEE ALSO

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.
63
64
65
66libidn                               1.28                      tld_strerror(3)
Impressum