26 lines
1011 B
C
26 lines
1011 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/14 19:06:11 by cchauvet #+# #+# */
|
|
/* Updated: 2022/07/15 12:03:56 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include <unistd.h>
|
|
|
|
int ft_strlen(char *str)
|
|
{
|
|
int a;
|
|
|
|
a = 0;
|
|
while (*str != 0)
|
|
{
|
|
a++;
|
|
str++;
|
|
}
|
|
return(a);
|
|
}
|