-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strlen.c
31 lines (26 loc) · 1.15 KB
/
ft_strlen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: iziane <iziane@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 21:18:50 by iziane #+# #+# */
/* Updated: 2024/03/12 21:20:59 by iziane ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strlen(const char *str)
{
int counter;
counter = 0;
while (str[counter] != '\0')
counter++;
return (counter);
}
// int main(void)
// {
// char str[] = "Ouey Zizou";
// printf("Amount of elements in string: %d\n", ft_strln(str));
// return (0);
// }