toaruos/libc/arch/aarch64/memset.c

10 lines
150 B
C
Raw Normal View History

2022-01-23 04:36:46 +03:00
#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;
}