blob: 5d7de626efc951c7dbd84c06859e5b4692bb5f11 (
plain)
1
2
3
4
5
6
7
8
9
|
#include <string.h>
void *memset(void *dst, const unsigned char c, u32 n) {
uintptr_t d = (uintptr_t)dst;
for (u32 i = 0; i < n; i++, d++)
*(unsigned char *)d = c;
return (void *)d;
}
|