42_solong/libftx/libft/ft_strlen.c
Camille Chauvet 9e58abcd5c kekw
2022-12-22 17:54:17 +01: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);
}