libft/ft_strlen.c

24 lines
1023 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <timo42@proton.me> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/03 23:07:08 by tischmid #+# #+# */
/* Updated: 2023/06/02 20:02:05 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <stddef.h>
size_t ft_strlen(char const *s)
{
size_t length;
length = 0;
while (*s++)
length++;
return (length);
}