08-13-2012 11:26 PM
HI,
i am trying to use memcpy function with offset in my application. i want to copy bytes from one buffer to the other starting from 3rd location. i want to leave first 2 bytes as header info. Can somebody help me on this please?
Thanks
08-14-2012 01:42 AM
Just add the offset to the buffers adress ( which is identical to the buffer itself in C ) Something like
memcpy ( target+2, source+2, sizeof( source )-2).
And make sure that the target buffer is big enough.