tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
ft_strlen.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_strlen.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/10/23 13:37:27 by tgrekov #+# #+# */
9
/* Updated: 2023/11/09 20:06:03 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#include "
libft.h
"
21
28
size_t
ft_strlen
(
const
char
*str)
29
{
30
size_t
i;
31
32
i = 0;
33
while
(str[i])
34
i++;
35
return
(i);
36
}
ft_strlen
size_t ft_strlen(const char *str)
Get length of str.
Definition
ft_strlen.c:28
libft.h
libft
ft_strlen.c