반응형
void *memmove(void *dest, const void *src, size_t n)
void *memmove(void *dest, const void *src, size_t n) { unsigned char *pd = dest; const unsigned char *ps = src; if (__np_anyptrlt(ps, pd)) for (pd += n, ps += n; n--;) *--pd = *--ps; else while(n--) *pd++ = *ps++; return dest; }
반응형