summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/32/util.c
blob: 7915168e4add5d7492bd099f524f53e15bc8fd18 (plain)
1
2
3
4
5
6
7
8
#include <kernel/arch/amd64/32/util.h>

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