Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *ft_memmove(void *dst, const void *src, size_t n)
- {
- void *ret;
- ret = dst;
- if (dst < src)
- ft_memcpy(dst, src, n);
- else
- while (n-- > 0)
- ((unsigned char *)dst)[n] = ((unsigned char *)src)[n];
- return (ret);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement