首页 > 代码库 > C++常考面试题:实现内存拷贝函数

C++常考面试题:实现内存拷贝函数

void* memcpy(void *dst,const void *src,size_t count)
{
    assert(dst!=NULL);
    assert(src!=NULL);
    unsigned char *pdst=(unsigned char*)dst;
    const unsigned char *psrc=http://www.mamicode.com/(const unsigned char *)src;>

C++常考面试题:实现内存拷贝函数