I am having a brainfart atm. I have a character array defined as buffer. When my code is executed, it get filled up with various data. I know that starting at buffer is an unsigned short. This obviously stretches from buffer to buffer. I am trying to assign it to a variable, but am stumped because I am not getting the right out put.
Would this not be the way to do it?
or something similar? I have been working on this project too long.Code:var = (unsigned short)buffer;