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

14
srcs/ft_strlen.c Normal file
View file

@ -0,0 +1,14 @@
#include <stddef.h>
size_t ft_strlen(const char *s)
{
const char *p = s;
if (!s)
return 0;
while (*p)
++p;
return (size_t)(p - s);
}