25 lines
1,012 B
C
25 lines
1,012 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_strlen.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/10/28 11:13:17 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/10/28 11:26:18 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
int ft_strlen(char *str)
|
||
|
{
|
||
|
int count;
|
||
|
|
||
|
count = 0;
|
||
|
while (*str != '\0')
|
||
|
{
|
||
|
count++;
|
||
|
str++;
|
||
|
}
|
||
|
return (count);
|
||
|
}
|