feat: initial version

This commit is contained in:
Zoëy Noort 2025-05-05 18:24:21 +02:00
parent 5cad2db883
commit 6428ed06b0
16 changed files with 263 additions and 0 deletions

9
srcs/ft_memset.c Normal file
View file

@ -0,0 +1,9 @@
#include "libft.h"
void *ft_memset(void *s, int c, size_t n)
{
unsigned char *p = (unsigned char *)s;
while (n--)
*p++ = (unsigned char)c;
return s;
}