annotate libgcc/memcpy.c @ 151:2eca1fb48fa2

Added tag current for changeset 26042f4007d5
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 23 May 2020 14:59:38 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Public domain. */
kono
parents:
diff changeset
2 #include <stddef.h>
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 void *
kono
parents:
diff changeset
5 memcpy (void *dest, const void *src, size_t len)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 char *d = dest;
kono
parents:
diff changeset
8 const char *s = src;
kono
parents:
diff changeset
9 while (len--)
kono
parents:
diff changeset
10 *d++ = *s++;
kono
parents:
diff changeset
11 return dest;
kono
parents:
diff changeset
12 }