libft/ft_strlen.c
Khaïs COLIN 66f4981649 ft_strlen: initial implementation
also create libft.h
2024-10-15 10:21:37 +02:00

23 lines
1,007 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/14 15:12:02 by kcolin #+# #+# */
/* Updated: 2024/10/15 10:17:25 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_size ft_strlen(const char *s)
{
int i;
i = 0;
while (s[i] != '\0')
i++;
return (i);
}