
Convert from char to unsigned char
Quote:
>As I can convert a variable of char type to unsigned char type?
>Thanks.
A single-byte character? Just assign it.
char c = 'a';
unsigned int i;
i = c;
i now equals 97.
The compiler may warn you that a sign could be lost, but it should
compile and run.
--
Tim Slattery
MS MVP(DTS)