1al_utf8_encode(3)                                            al_utf8_encode(3)
2
3
4

NAME

6       al_utf8_encode - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              size_t al_utf8_encode(char s[], int32_t c)
12

DESCRIPTION

14       Encode the specified code point to UTF-8 into the buffer s.  The buffer
15       must have enough space to hold the encoding, which takes between 1  and
16       4  bytes.   This  routine  will  refuse  to  encode  code  points above
17       0x10FFFF.
18
19       Returns the number of bytes written, which is the same as that returned
20       by al_utf8_width(3).
21

SEE ALSO

23       al_utf16_encode(3)
24
25
26
27Allegro reference manual                                     al_utf8_encode(3)
Impressum