void* memcpy(void* dest, void* src, unsigned count)
{
if(dest == NULL || src == NULL)
return NULL;
char *pdest = (char*)dest;
char *psrc = (char*)src;
while(count--)
{
*pdest++ = *psrc++;
}
return dest;
}
void* memcpy(void* dest, void* src, unsigned count)
{
if(dest == NULL || src == NULL)
return NULL;
char *pdest = (char*)dest;
char *psrc = (char*)src;
while(count--)
{
*pdest++ = *psrc++;
}
return dest;
}