1
0
cub3d/libft/str/ft_strlen.c

24 lines
1013 B
C
Raw Permalink Normal View History

2024-09-10 16:27:06 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 14:07:38 by madumerg #+# #+# */
/* Updated: 2024/07/09 17:00:57 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *str)
{
size_t i;
i = 0;
while (str && str[i])
i++;
return (i);
}