summaryrefslogtreecommitdiff
path: root/src/kernel/util.c
blob: da3ac9ddbac3ef0e189ce24a3adb2771b6d7ab1e (plain)
1
2
3
4
5
6
7
8
9
#include <kernel/util.h>
#include <stdint.h>

void *memset(void *s, int c, size_t n) {
	uint8_t *s2 = s;
	for (size_t i = 0; i < n; n++)
		s2[i] = c;
	return s;
}