mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-28 06:04:16 +01:00
bb1774e2c3
booter, dont even think about it to report bugs with it
40 lines
795 B
C
40 lines
795 B
C
// Copyright 2008-2009 Segher Boessenkool <segher@kernel.crashing.org>
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2;
|
|
// see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
|
|
#include <stdio.h>
|
|
|
|
void *memset(void *b, int c, size_t len)
|
|
{
|
|
size_t i;
|
|
|
|
for (i = 0; i < len; i++)
|
|
((unsigned char *)b)[i] = c;
|
|
|
|
return b;
|
|
}
|
|
|
|
void *memcpy(void *dst, const void *src, size_t len)
|
|
{
|
|
size_t i;
|
|
|
|
for (i = 0; i < len; i++)
|
|
((unsigned char *)dst)[i] = ((unsigned char *)src)[i];
|
|
|
|
return dst;
|
|
}
|
|
|
|
void *memmove(void *dst, const void *src, size_t len)
|
|
{
|
|
size_t i;
|
|
unsigned char Current;
|
|
for (i = 0; i < len; i++)
|
|
{
|
|
Current = ((unsigned char *)src)[i];
|
|
((unsigned char *)src)[i] = 0x00;
|
|
((unsigned char *)dst)[i] = Current;
|
|
}
|
|
|
|
return dst;
|
|
}
|