Board index » cppbuilder » memcpy overlap

memcpy overlap


2006-08-08 12:24:20 AM
cppbuilder13
hi,
I am using the function memcpy(dest,src,sizeofsrc). but if the distance
between the src and dest is smaller than sizeofsrc, error happens, how to
avoid this?
thanks in advance,
Zhan Wei Ming
 
 

Re:memcpy overlap

"zhan wei ming" < XXXX@XXXXX.COM >wrote:
Quote
I am using the function memcpy(dest,src,sizeofsrc). but if the distance
between the src and dest is smaller than sizeofsrc, error happens, how to
avoid this?
memmove()
Alan Bellingham
--
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel