Hello Everybody I want to attach one String to another. The String that I want to attach is for example: {0x01,0x02,0x03,0x00,0x05} the strcat doesn't copy the bytes after 0x03 because it detects 0x00 as the NUL-Terminator I guess. its the same when I use strncat with the right length parameter. ...but I really need to handle strings like that! Who can help? Thanx a lot
"The Problem is that they overwrite the 1st array and are not attached." Again, the problem lies in your code - not the library functions! memcpy copies the data you specify to the destination which you specify - so if you specify a destination that will overwrite your 1st array, that's what'll happen! If you don't want it to overwrite your 1st array, then specify the destination address accordingly! This is the You Asked For It, You Got It! (YAFIYGI) programming paradigm! ;-)
Thanx for all that help! The code now does what I want. Have a nice week