summaryrefslogtreecommitdiffstats
path: root/libgcc/memcpy.c
blob: 58b1e405627aaac66d1973be344aed72cdeddc21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Public domain.  */
#include <stddef.h>

void *
memcpy (void *dest, const void *src, size_t len)
{
  char *d = dest;
  const char *s = src;
  while (len--)
    *d++ = *s++;
  return dest;
}
OpenPOWER on IntegriCloud