Hello all, This is my first post to this forum, so apologies in advance for the lack of clarity. Im trying to assign an unsigned 16 bit word to a char array i.e. two 8 bit single bytes. my value (u16 sum) contains the word value 24fa which I need to insert into the middle of a char array buff[100]. Obviously, I am concious of the fact that the array is of type char (8 bit), thus any allocation will shorten the original value e.g. buff[0] = sum //buff[0] only contains 0x24 Is there any way to change the word value to two 8 bit singular bytes for storage? Or is there another way via strcat/memcpy etc..etc Many thanks in advance. Stu
S
simonpearson
@simonpearson