hi everyone, this is my first post.
I'm not a total noob to C but my skills are rusty....it's been a while.
Here is what I have:
BYTE cin[133];
WORD msg[66];
.
.
where cin holds the values read from the serial port. the box I'm writing code for only reads one char at a time from the port. I want to take this data and map it over to a WORD as follows:
lets say cin[0]=FF and cin[1] =AC.....I want msg[0]=FFAC.
help?
I'm not a total noob to C but my skills are rusty....it's been a while.
Here is what I have:
BYTE cin[133];
WORD msg[66];
.
.
where cin holds the values read from the serial port. the box I'm writing code for only reads one char at a time from the port. I want to take this data and map it over to a WORD as follows:
lets say cin[0]=FF and cin[1] =AC.....I want msg[0]=FFAC.
help?