forked from Bananymous/banan-os
9 lines
157 B
C
9 lines
157 B
C
|
#include <string.h>
|
||
|
|
||
|
void* memset(void* s, int c, size_t n)
|
||
|
{
|
||
|
unsigned char* p = (unsigned char*)s;
|
||
|
for (size_t i = 0; i < n; i++)
|
||
|
p[i] = c;
|
||
|
return s;
|
||
|
}
|