Files
Corewar-Final/libft/libft/ft_strlen.c
Jeremy FLEURY 748d10f4f3 push
2019-07-17 11:22:24 +02:00

24 lines
1010 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/05 14:49:21 by jfleury #+# #+# */
/* Updated: 2018/11/13 18:25:34 by jfleury ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *str)
{
int i;
i = 0;
while (str[i] != 0)
i++;
return (i);
}