//Most simplified copy function.void *memcpy(void* dest, const void* src, size_t count){ char *s = (char *)src; char *d = (char *)dest; for(; count; count--) { *s++ = *d++; //usage of operator precendence }}
Powered by ScribeFire.
A faster, but still simple implementation
it won work if the 2 arrays are overlapping.
A faster, but still simple implementation
ReplyDeleteit won work if the 2 arrays are overlapping.
ReplyDelete