1tld_check_8z(3)                     libidn                     tld_check_8z(3)
2
3
4

NAME

6       tld_check_8z - API function
7

SYNOPSIS

9       #include <tld.h>
10
11       int  tld_check_8z(const  char * in, size_t * errpos, const Tld_table **
12       overrides);
13

ARGUMENTS

15       const char * in
16                   Zero-terminated UTF8 string to process.
17
18       size_t * errpos
19                   Position of offending character is returned here.
20
21       const Tld_table ** overrides
22                   A Tld_table array of additional domain  restriction  struc‐
23                   tures  that  complement and supersede the built-in informa‐
24                   tion.
25

DESCRIPTION

27       Test each of the characters in  in for whether or not they are  allowed
28       by  the  information  in   overrides or by the built-in TLD restriction
29       data. When data for the same TLD is available both  internally  and  in
30       overrides  , the information in  overrides takes precedence. If several
31       entries for a specific TLD are found, the first one is used.  If  over‐
32       rides  is NULL, only the built-in information is used.  The position of
33       the first offending character is returned in  errpos .  Note  that  the
34       error  position  refers to the decoded character offset rather than the
35       byte position in the string.
36
37       Return value: Returns the Tld_rc value TLD_SUCCESS  if  all  characters
38       are  valid  or when  tld is null, TLD_INVALID if a character is not al‐
39       lowed, or additional error codes on general failure conditions.
40

REPORTING BUGS

42       Report bugs to <help-libidn@gnu.org>.
43       General guidelines for reporting bugs: https://www.gnu.org/gethelp/
44       GNU Libidn home page: https://www.gnu.org/software/libidn/
45
46
48       Copyright © 2002-2022 Simon Josefsson.
49       Copying and distribution of this file, with  or  without  modification,
50       are  permitted in any medium without royalty provided the copyright no‐
51       tice and this notice are preserved.
52

SEE ALSO

54       The full documentation for libidn is maintained as  a  Texinfo  manual.
55       If  the  info  and libidn programs are properly installed at your site,
56       the command
57
58              info libidn
59
60       should give you access to the complete manual.  As an  alternative  you
61       may obtain the manual from:
62
63              https://www.gnu.org/software/libidn/manual/
64
65libidn                               1.41                      tld_check_8z(3)
Impressum