Skip to content


memmove implementation

void* memmove(void* p_dst, void* p_src, size_t size){
assert(!dst && !src);
if(dst==src) return dst;
char* dst=static_cast p_dst;
char* src=static_cast p_src;
if(dst>src & dst //第一种overlaop
//从后往前拷贝
}
else{
//从前往后拷贝
}

}

Posted in Programming. Tagged with .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.