Antonio Nino Diaz | 9eddb1e | 2018-08-16 14:53:05 +0100 | [diff] [blame] | 1 | /* |
2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | */ | ||||
6 | |||||
7 | #include <stddef.h> | ||||
8 | |||||
9 | void *memcpy(void *dst, const void *src, size_t len) | ||||
10 | { | ||||
11 | const char *s = src; | ||||
12 | char *d = dst; | ||||
13 | |||||
14 | while (len--) | ||||
15 | *d++ = *s++; | ||||
16 | |||||
17 | return dst; | ||||
18 | } |