-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlen.c
28 lines (24 loc) · 1.11 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aviholai <aviholai@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/02 12:45:19 by aviholai #+# #+# */
/* Updated: 2022/02/07 14:26:34 by aviholai ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** 'Strlen()' (String length) counts the length of a string applied as a
** parameter and returns it as an integer value.
*/
size_t ft_strlen(const char *str)
{
int i;
i = 0;
while (str[i])
i++;
return (i);
}