init commit

This commit is contained in:
Faynot
2026-07-07 20:35:07 +03:00
commit 38cc34a6e9
33 changed files with 659 additions and 0 deletions

9
src/string/memset.c Normal file
View 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;
}