Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
f582047f04c07347c9bbf24e0676954537f1c90c
/
.
/
src
/
lib
/
memcpy.c
blob: e1fa3c56cf4d616a7f0241206dcf758cd212ecac [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<string.h>
void
*
memcpy
(
void
*
vdest
,
const
void
*
vsrc
,
size_t
bytes
)
{
const
char
*
src
=
vsrc
;
char
*
dest
=
vdest
;
int
i
;
for
(
i
=
0
;
i
<
(
int
)
bytes
;
i
++)
dest
[
i
]
=
src
[
i
];
return
vdest
;
}