1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 13:30:47 +00:00
oot/src/code/code_80069420.c
2020-03-22 22:20:03 +01:00

26 lines
413 B
C

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