-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlen.c
21 lines (19 loc) · 976 Bytes
/
ft_strlen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: javiersa <javiersa@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/28 20:25:49 by javiersa #+# #+# */
/* Updated: 2022/12/12 16:37:50 by javiersa ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strlen(const char *s)
{
int i;
i = 0;
while (s[i])
i++;
return (i);
}