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

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