1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/libk/memset.c
2017-11-04 11:43:55 +00:00

8 lines
203 B
C

void kmemset(void *const buffer, const unsigned char value, const unsigned long size)
{
unsigned char *const s = buffer;
for (unsigned long i = 0; i < size; ++i) {
s[i] = value;
}
}