-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathehime.c
31 lines (27 loc) · 1.09 KB
/
ehime.c
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
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ehime.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tayamamo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/01 15:57:08 by tayamamo #+# #+# */
/* Updated: 2021/04/01 16:02:26 by tayamamo ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
size_t ft_strlen(char *s)
{
size_t i;
i = 0;
if (s == NULL)
return(i);
while(s[i])
i++;
return (i);
}
int main(void)
{
write(1, "shuuzen chu.\n", ft_strlen("shuuzen chu.\n"));
return (0);
}