]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/gcc/config/memcpy.c
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / gcc / config / memcpy.c
1 /* Public domain.  */
2 #include <stddef.h>
3
4 void *
5 memcpy (void *dest, const void *src, size_t len)
6 {
7   char *d = dest;
8   const char *s = src;
9   while (len--)
10     *d++ = *s++;
11   return dest;
12 }