diff options
Diffstat (limited to 'libgcc/memset.c')
-rw-r--r-- | libgcc/memset.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgcc/memset.c b/libgcc/memset.c new file mode 100644 index 00000000000..3e7025ee394 --- /dev/null +++ b/libgcc/memset.c @@ -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; +} |