This commit is contained in:
nub31
2025-09-05 21:41:00 +02:00
parent 8e986807df
commit 0f6b66a486
21 changed files with 210 additions and 245 deletions

View File

@@ -1,9 +1,17 @@
#include "mem.h"
void memset(void* destination, uint8_t value, size_t length)
void memset(void* destination, u8 value, size_t length)
{
for (size_t i = 0; i < length; i++)
{
((uint8_t*)destination)[i] = value;
((u8*)destination)[i] = value;
}
}
void memcpy(void* destination, void* source, size_t length)
{
for (size_t i = 0; i < length; i++)
{
((u8*)destination)[i] = ((u8*)source)[i];
}
}