-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlenv2.c
23 lines (20 loc) · 1016 Bytes
/
ft_strlenv2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlenv2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ghuertas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/21 08:42:00 by ghuertas #+# #+# */
/* Updated: 2022/05/15 20:35:23 by ghuertas ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
size_t ft_strlenv2(const char *s)
{
size_t i;
i = 0;
while (s[i] != '\0')
i++;
return (i);
}