1uwidth_max(3) Allegro manual uwidth_max(3)
2
3
4
6 uwidth_max - Number of bytes a character can occupy. Allegro game pro‐
7 gramming library.
8
10 #include <allegro.h>
11
12
13 int uwidth_max(int type);
14
16 Low level helper function for working with Unicode text data. Returns
17 the largest number of bytes that one character can occupy in the given
18 encoding format. Pass U_CURRENT to represent the current format. Exam‐
19 ple:
20
21 char *temp_buffer = malloc(256 * uwidth_max(U_UTF8));
22
23
25 uwidth(3), ucwidth(3)
26
27
28
29Allegro version 4.2.3 uwidth_max(3)