aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/string/memset.c
blob: fb5ab80e2e6e144de74c33f2bb0c1365f0fba5ce (plain) (blame)
1
2
3
4
5
6
7
8
#include <stddef.h>

void *memset(void *dest, char val, size_t count)
{
    char *temp = (char *) dest;
    for (; count != 0; count--) *temp++ = val;
    return dest;
}