-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strlen.c
More file actions
20 lines (18 loc) · 1014 Bytes
/
ft_strlen.c
File metadata and controls
20 lines (18 loc) · 1014 Bytes
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/11/16 14:20:43 by halhashm #+# #+# */
/* Updated: 2021/11/17 12:35:56 by halhashm ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
size_t ft_strlen(const char *c)
{
if (*c == 0)
return (0);
return (ft_strlen(c + 1) + 1);
}