blob: e3a382b27650ea92be0cc3e028c2a030ce43a834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/03 17:59:38 by cacharle #+# #+# */
/* Updated: 2019/07/03 18:15:38 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strlen(char *str)
{
int counter;
counter = 0;
while (*str != '\0')
{
counter++;
str++;
}
return (counter);
}
|