1 /* 2 * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <stddef.h> 8 #include <string.h> 9 memcpy(void * dst,const void * src,size_t len)10void *memcpy(void *dst, const void *src, size_t len) 11 { 12 const char *s = src; 13 char *d = dst; 14 15 while (len--) 16 *d++ = *s++; 17 18 return dst; 19 } 20