-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strlen.c
More file actions
30 lines (26 loc) · 1.04 KB
/
Copy pathft_strlen.c
File metadata and controls
30 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: smizuoch <smizuoch@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/17 11:51:24 by smizuoch #+# #+# */
/* Updated: 2023/05/30 16:16:55 by smizuoch ### ########.fr */
/* */
/* ************************************************************************** */
#include"libft.h"
size_t ft_strlen(const char *s)
{
size_t c;
c = 0;
while (s[c])
{
c ++;
}
return (c);
}
/*int main(void)
{
printf("%d\n",ft_strlen("Hello"));
}*/