Hi a question about converting a char to an int
As a character takes values in Table I can convert ascii int = char-48; example 0 = '0 '-48;
while (i <4) {
if (IFG2 & UCA0RXIFG) {
data [i] = UCA0RXBUF;
UCA0TXBUF = data [3];
i + +;
}
}
The data value [3] = 0 but as character and I need it as int.
My question is do as I am thinking or is there a library to convert from char to int thanks.