forked from yukimiii/47prefecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokushima.c
31 lines (27 loc) · 1.08 KB
/
tokushima.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tokushima.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tayamamo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/01 08:33:13 by tayamamo #+# #+# */
/* Updated: 2021/04/01 08:40:05 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, "kowai!\n", ft_strlen("kowai\n") + 1);
return (0);
}