-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlen.c
22 lines (20 loc) · 1.03 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: asolano- <asolano-@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/19 10:01:04 by asolano- #+# #+# */
/* Updated: 2022/04/21 09:34:47 by asolano- ### ########.fr */
/* */
/* ************************************************************************** */
/*Esta función mide cuantos caracteres tiene una cadena y devuelve la longitud*/
int ft_strlen(char *a)
{
long l;
l = 0;
while (a[l] != 0)
l++;
return (l);
}