hello, i also have some conversion problems.
input:
char InBuff[8] = "12345678";
output:
char OutBuff[6] should be '123456' first 6 digits
char OutB should be '78' last 2 digits (bcd encoded)
the implementation should be a one liner.this is what a have so far.it works, aslong no 0 is involved
OutB = ((InBuff[6] - 0x30) * 10) + (InBuff[7] - 0x30);
can anyone help me out here and show me a good implementation or give me some hints plz.