--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libgcc/memset.c Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,11 @@ +/* Public domain. */ +#include <stddef.h> + +void * +memset (void *dest, int val, size_t len) +{ + unsigned char *ptr = dest; + while (len-- > 0) + *ptr++ = val; + return dest; +}