k-tana-zero/libs/libc/memset.c
Julien CLEMENT 7178dbb6a7 feat: add given files
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2021-07-12 15:57:08 +02:00

12 lines
135 B
C

#include <string.h>
void *memset(void *s, int c, size_t n)
{
char *p = s;
for (size_t i = 0; i < n; ++i)
p[i] = c;
return s;
}