Advertisement
Guest User

memcopy.c

a guest
Mar 25th, 2012
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include <stdlib.h>
  2.  
  3. void* memcopy(void* dst, const void* src, size_t count) {
  4.    while (count--) *(char*)dst++ = *(char*)src++;
  5.    return dst;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement