convert C8 to INT
convert C8 to INT
how can i convert C8 to INT
The conversion from c8 [or char as the rest of the world calls it] to int is implicit. You don't need to do anything.
If, on the other hand, you want to know how convert from a character string [c8* or c8[]] to integer, there are several ways. You could use the C library functions for type conversion atoi(), strtol() even sscanf().
Irrlicht also has a function strtol10() in fast_atof.h that you could use also, but it only works for unsigned values.
Travis
Code: Select all
c8 byte = 10;
int quad = byte;
Irrlicht also has a function strtol10() in fast_atof.h that you could use also, but it only works for unsigned values.
Travis