ft_malloc/libft/ft_strlen.c
2025-11-28 19:50:58 +01:00

23 lines
1,002 B
C
Executable file

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/14 15:19:29 by thrieg #+# #+# */
/* Updated: 2025/02/16 19:04:52 by thrieg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *s)
{
size_t i;
i = 0;
while (s[i])
i++;
return (i);
}