toaruos/libc/arch/aarch64/memset.c
2022-01-30 21:25:27 +09:00

10 lines
150 B
C

#include <stddef.h>
void * memset(void * dest, int c, size_t n) {
size_t i = 0;
for ( ; i < n; ++i ) {
((char *)dest)[i] = c;
}
return dest;
}