-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strlen.c
29 lines (25 loc) · 1.05 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/12 03:11:36 by yfurutat #+# #+# */
/* Updated: 2022/11/25 18:04:25 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
// int main()
// {
// printf("%zu", ft_strlen(""));
// }
//6L
size_t ft_strlen(const char *str)
{
size_t i;
i = 0;
while (str[i] != '\0')
i++;
return (i);
}