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_80106860.c
Synray 4d3d264624
Decompile code_801067F0, 80106860, 801068B0 (#89)
* Decompile code_801067F0, 80106860, 801068B0

* clang format

* Remove unnecessary casts
2020-04-23 10:59:25 +02:00

13 lines
290 B
C

#include <ultra64.h>
#include <global.h>
// memset used in __osMalloc, z_quake, z_view, and z_camera
void* func_80106860(void* ptr, s32 val, size_t size) {
u8* sp4 = ptr;
register s32 a3;
for (a3 = size--; a3 != 0; a3 = size--) {
*sp4++ = val;
}
return ptr;
}