1stringprep_unichar_to_utf8(3) libidn stringprep_unichar_to_utf8(3)
2
3
4
6 stringprep_unichar_to_utf8 - API function
7
9 #include <stringprep.h>
10
11 int stringprep_unichar_to_utf8(uint32_t c, char * outbuf);
12
14 uint32_t c a ISO10646 character code
15
16 char * outbuf
17 output buffer, must have at least 6 bytes of space. If
18 NULL, the length will be computed and returned and nothing
19 will be written to outbuf.
20
22 Converts a single character to UTF-8.
23
25 number of bytes written.
26
28 Report bugs to <bug-libidn@gnu.org>. GNU Libidn home page:
29 http://www.gnu.org/software/libidn/ General help using GNU software:
30 http://www.gnu.org/gethelp/
31
33 Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Simon
34 Josefsson.
35 Copying and distribution of this file, with or without modification,
36 are permitted in any medium without royalty provided the copyright
37 notice and this notice are preserved.
38
40 The full documentation for libidn is maintained as a Texinfo manual.
41 If the info and libidn programs are properly installed at your site,
42 the command
43
44 info libidn
45
46 should give you access to the complete manual.
47
48
49
50libidn 1.18 stringprep_unichar_to_utf8(3)