00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00016 int memcpy(void *dst, void *src, int n) 00017 { 00018 register int i; 00019 char *d = (char *)dst; 00020 char *s = (char *)src; 00021 00022 for (i = 0; i < n; i++) 00023 { 00024 *d++ = *s++; 00025 } 00026 return (i+1); 00027 }