1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 21:40:03 +00:00
oot/src/code/code_80069420.c

31 lines
421 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#include <ultra64.h>
#include <global.h>
void* MemCopy(void* dest, void* src, s32 size)
{
u8* destu = (u8*)dest;
u8* srcu = (u8*)src;
while (size > 0)
{
*destu++ = *srcu++;
size--;
}
return dest;
}
void* MemSet(void* dest, s32 val, s32 size)
{
u8* destu = (u8*)dest;
s32 s = size;
while (s > 0)
{
*destu++ = val;
s--;
}
return dest;
}