summaryrefslogtreecommitdiff
path: root/src/lib/memset.c
blob: bac33055904ef6f1e7c3f12e19a5669603173dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <string.h>

void *memset(void *s, int c, size_t n)
{
	int i;
	char *ss = (char *) s;

	for (i = 0; i < (int)n; i++)
		ss[i] = c;

	return s;
}