XINU
memcpy.c
Go to the documentation of this file.
1 
13 void *memcpy(void *s, const void *ct, int n)
14 {
15  register int i;
16  char *dst = (char *)s;
17  char *src = (char *)ct;
18 
19  for (i = 0; i < n; i++)
20  {
21  *dst++ = *src++;
22  }
23  return s;
24 }
void * memcpy(void *s, const void *ct, int n)
メモリAの領域(source)からメモリBの領域(Destination)にN Byteコピーする。
Definition: memcpy.c:13