1uconvert_size(3)                Allegro manual                uconvert_size(3)
2
3
4

NAME

6       uconvert_size  - Number of bytes needed to store a string after conver‐
7       sion. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int uconvert_size(const char *s, int type, int newtype);
14

DESCRIPTION

16       Finds out how many bytes are required to store the specified string `s'
17       after  a  conversion  from `type' to `newtype', including the mandatory
18       zero terminator of the string. You can use U_CURRENT for either  `type'
19       or  `newtype'  as a shortcut to represent whatever text encoding format
20       is currently selected. Example:
21
22          length = uconvert_size(old_string, U_CURRENT, U_UNICODE);
23          new_string = malloc(length);
24          ustrcpy(new_string, old_string);
25

RETURN VALUE

27       Returns the number of bytes required to store the string after  conver‐
28       sion.
29
30

SEE ALSO

32       need_uconvert(3), do_uconvert(3)
33
34
35
36Allegro                          version 4.2.3                uconvert_size(3)
Impressum