mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-26 22:51:01 +00:00
16 lines
222 B
C
16 lines
222 B
C
#include <string.h>
|
|
|
|
extern int value;
|
|
|
|
void *memcpy(void *dest, const void *src, size_t n)
|
|
{
|
|
char *d = (char *) dest;
|
|
const char *s = (const char *) src;
|
|
|
|
while (n--)
|
|
*d++ = *s++;
|
|
|
|
value = 1;
|
|
return dest;
|
|
}
|