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