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       Character encoding conversion error.
36

TLD_NO_TLD

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

REPORTING BUGS

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-2020 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.  As an alternative you
63       may obtain the manual from:
64
65              http://www.gnu.org/software/libidn/manual/
66
67libidn                               1.36                      tld_strerror(3)
Impressum