summaryrefslogtreecommitdiff
path: root/kernel/lib/memsetv.c
blob: 647847f539f92909cbcb7fe588afb061cc528dc1 (plain)
1
2
3
4
5
6
7
8
9
10
#include <lib.h>

volatile void *memsetv(volatile void *dest, int c, size_t n)
{
	volatile unsigned char *d = dest;
	for (; n; n--) {
		*d++ = c;
	};
	return dest;
}