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

NAME

6       do_uconvert  -  Converts  a  string to another encoding format. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void do_uconvert(const char *s, int type, char *buf, int  newtype,  int
14       size);
15

DESCRIPTION

17       Converts  the specified string `s' from `type' to `newtype', storing at
18       most `size' bytes into the output `buf'. The type  parameters  can  use
19       the  value  U_CURRENT as a shortcut to represent the currently selected
20       encoding format. Example:
21
22          char temp_string[256];
23          do_uconvert(input_string, U_CURRENT, temp_string, U_ASCII, 256);
24
25       Note that, even for empty strings, your destination string must have at
26       least  enough  bytes  to  store  the  terminating null character of the
27       string, and your parameter size must reflect this. Otherwise, the debug
28       version  of Allegro will abort at an assertion, and the release version
29       of Allegro will overrun the destination buffer.
30
31

SEE ALSO

33       uconvert(3)
34
35
36
37Allegro                          version 4.2.2                  do_uconvert(3)
Impressum