libft
Loading...
Searching...
No Matches
ft_strlen.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_strlen.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2022/10/25 16:41:02 by tspoof #+# #+# */
9/* Updated: 2022/11/07 19:02:43 by tspoof ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15size_t ft_strlen(const char *s)
16{
17 size_t i;
18
19 i = 0;
20 while (s[i] != '\0')
21 i++;
22 return (i);
23}
size_t ft_strlen(const char *s)
Length of the string.
Definition ft_strlen.c:15