summaryrefslogtreecommitdiffstats
path: root/lib/libc-headless/string/memset.c
blob: f79a4b45e0495fa6969188d7dec2d1c9e573fec1 (plain) (blame)
1
2
3
4
5
6
7
#include <stddef.h>

void
memset(void *s, int c, size_t n)
{
    for(unsigned char *sb = s; n; n--) *(sb++) = c;
}