mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 03:34:16 +00:00
feat: add ft_strlen function
This commit is contained in:
11
ft_strlen.c
Normal file
11
ft_strlen.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "libft.h"
|
||||
|
||||
size_t strlen(const char *s)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
i = 0;
|
||||
while (s[i] != '\0')
|
||||
i++;
|
||||
return (i);
|
||||
}
|
||||
Reference in New Issue
Block a user