-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strlen.c
20 lines (18 loc) · 1005 Bytes
/
ft_strlen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: halhashm <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/05 09:44:55 by halhashm #+# #+# */
/* Updated: 2021/10/24 14:18:36 by halhashm ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strlen(const char *c)
{
if (*c == 0)
return (0);
return (ft_strlen(c + 1) + 1);
}