29 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mdenys <mdenys@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/10/28 19:10:44 by mdenys #+# #+# */
/* Updated: 2020/11/23 18:40:34 by mdenys ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strlen(char *str)
{
int i;
i = 0;
if (*str)
{
while (str[i] != '\0')
{
i++;
}
}
return (i);
}