re PR c++/80029 (valgrind error in new_omp_context(omp_region_type) (gimplify.c:400))
[official-gcc.git] / libgcc / memcpy.c
blob58b1e405627aaac66d1973be344aed72cdeddc21
1 /* Public domain. */
2 #include <stddef.h>
4 void *
5 memcpy (void *dest, const void *src, size_t len)
7 char *d = dest;
8 const char *s = src;
9 while (len--)
10 *d++ = *s++;
11 return dest;