blob: fc0c9fe890e1295c6c6f141889ada90a632be608 [file] [log] [blame]
Antonio Nino Diaz9eddb1e2018-08-16 14:53:05 +01001/*
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
9void *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}