标签:
void* my_memmove(void *des,const void *src,int size) { char *Des=(char*)des; char *Src=(char*)src; assert(Des && Src); int len=strlen(Src); assert(size >0 && size <len); if(Des < Src || Des+size > Src+len) { while(size) { *Des++=*Src++; --size; } }else { Des=Des+size; Src=Src+size; while(size) { *Des--=*Src--; --size; } } return des; }
标签:
原文地址:http://blog.csdn.net/zhou753099943/article/details/52204006