42_libft/ft_strlen.c
Camille Chauvet 1d0f0b1901 m
2022-09-27 16:29:23 +02:00

23 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 12:03:59 by cchauvet #+# #+# */
/* Updated: 2022/09/27 09:02:11 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include <stddef.h>
size_t ft_strlen(const char *s)
{
size_t length;
length = 0;
while (s[length])
length++;
return (length);
}