xref: /dflybsd-src/contrib/gcc-4.7/libgcc/memcpy.c (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* Public domain.  */
2*e4b17023SJohn Marino #include <stddef.h>
3*e4b17023SJohn Marino 
4*e4b17023SJohn Marino void *
memcpy(void * dest,const void * src,size_t len)5*e4b17023SJohn Marino memcpy (void *dest, const void *src, size_t len)
6*e4b17023SJohn Marino {
7*e4b17023SJohn Marino   char *d = dest;
8*e4b17023SJohn Marino   const char *s = src;
9*e4b17023SJohn Marino   while (len--)
10*e4b17023SJohn Marino     *d++ = *s++;
11*e4b17023SJohn Marino   return dest;
12*e4b17023SJohn Marino }
13