libft
ft_strlen.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_strlen.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/04 22:48:19 by unite #+# #+# */
10 /* Updated: 2020/07/16 02:41:47 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 
20 size_t ft_strlen(const char *s)
21 {
22  size_t i;
23 
24  i = 0;
25  while (s[i])
26  i++;
27  return (i);
28 }
ft_strlen
size_t ft_strlen(const char *s)
Replicates behaviour of strlen from libc.
Definition: ft_strlen.c:20
libft.h