URGENT: NEED HELP
I have this situation where I need to insert hex byte type into a data, but my code doesn't work out as expected, that it only worked once. This is how the problem:
E.g.:
unsigned char data[10] = "\x50\x10\x30\x20\x17\x9A\x00\x10";
//insert and produce "\x50\x10\x10\x30\x20\x17\x9A\x00\x10\x10"
I have used loop to do so, but it only applicable to insert once, but not twice or more. Searching for any opinions and alternatives. Please reply. Thanks.