1stringprep_ucs4_to_utf8(3)          libidn          stringprep_ucs4_to_utf8(3)
2
3
4

NAME

6       stringprep_ucs4_to_utf8 - API function
7

SYNOPSIS

9       #include <stringprep.h>
10
11       char  *  stringprep_ucs4_to_utf8(const  uint32_t  *  str,  ssize_t len,
12       size_t * items_read, size_t * items_written);
13

ARGUMENTS

15       const uint32_t * str
16                   a UCS-4 encoded string
17
18       ssize_t len the maximum length of str to use. If  len  <  0,  then  the
19                   string is terminated with a 0 character.
20
21       size_t * items_read
22                   location to store number of characters read read, or NULL.
23
24       size_t * items_written
25                   location  to  store  number  of bytes written or NULL.  The
26                   value here stored does not include the trailing 0 byte.
27

DESCRIPTION

29       Convert a string from a 32-bit fixed width representation as UCS-4.  to
30       UTF-8. The result will be terminated with a 0 byte.
31

RETURN VALUE

33       a  pointer to a newly allocated UTF-8 string.  This value must be deal‐
34       located by the caller.  If an error occurs, NULL will be  returned  and
35       error set.
36

REPORTING BUGS

38       Report   bugs   to   <bug-libidn@gnu.org>.    GNU   Libidn  home  page:
39       http://www.gnu.org/software/libidn/ General help  using  GNU  software:
40       http://www.gnu.org/gethelp/
41
43       Copyright  © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Simon
44       Josefsson.
45       Copying and distribution of this file, with  or  without  modification,
46       are  permitted  in  any  medium  without royalty provided the copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The full documentation for libidn is maintained as  a  Texinfo  manual.
51       If  the  info  and libidn programs are properly installed at your site,
52       the command
53
54              info libidn
55
56       should give you access to the complete manual.
57
58
59
60libidn                               1.18           stringprep_ucs4_to_utf8(3)
Impressum