WiiFlow_Lite/resources/app_booter/source/string.c
fix94.1 bb1774e2c3 -highly beta, unfinished experiments with tinyload as wii game
booter, dont even think about it to report bugs with it
2012-10-12 22:25:22 +00:00

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;
}