ft_strlen

This commit is contained in:
Tanguy MAZE
2018-04-04 15:24:09 +02:00
parent 8ef94d1275
commit 67b29782ae
2 changed files with 25 additions and 1 deletions

23
ft_strlen.c Normal file
View File

@@ -0,0 +1,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/03 15:33:37 by tmaze #+# #+# */
/* Updated: 2018/04/04 14:39:59 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *s)
{
int i;
i = 0;
while (s[i])
i++;
return (i);
}