blob: 47fee2380e723ef9e36a4d7185040a6e13b09d03 [file] [log] [blame]
Soby Mathewb4c6df42022-11-09 11:13:29 +00001/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4 */
5
6#include <stddef.h>
7#include <string.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
18 return dst;
19}