2022-08-07 23:12:12 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
2003-04-22 21:02:15 +02:00
|
|
|
#include <string.h>
|
2004-03-11 16:01:31 +01:00
|
|
|
void *memcpy(void *vdest, const void *vsrc, size_t bytes)
|
2003-04-22 21:02:15 +02:00
|
|
|
{
|
2004-03-11 16:01:31 +01:00
|
|
|
const char *src = vsrc;
|
|
|
|
char *dest = vdest;
|
2003-04-22 21:02:15 +02:00
|
|
|
int i;
|
|
|
|
|
2009-01-20 22:40:16 +01:00
|
|
|
for (i = 0; i < (int)bytes; i++)
|
2004-03-11 16:01:31 +01:00
|
|
|
dest[i] = src[i];
|
2003-04-22 21:02:15 +02:00
|
|
|
|
2004-03-11 16:01:31 +01:00
|
|
|
return vdest;
|
2003-04-22 21:02:15 +02:00
|
|
|
}
|