init commit
This commit is contained in:
9
src/string/memset.c
Normal file
9
src/string/memset.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <string.h>
|
||||
|
||||
void *memset(void *dest, int c, size_t n)
|
||||
{
|
||||
unsigned char *d = dest;
|
||||
for (size_t i = 0; i < n; i++)
|
||||
d[i] = (unsigned char)c;
|
||||
return dest;
|
||||
}
|
||||
Reference in New Issue
Block a user