-
Notifications
You must be signed in to change notification settings - Fork 0
/
s.c
37 lines (32 loc) · 1.13 KB
/
s.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
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pboonpro <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/13 01:20:50 by pboonpro #+# #+# */
/* Updated: 2022/11/13 01:20:50 by pboonpro ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int s(char *str)
{
int i;
if (!str)
return (s("(null)"));
i = 0;
while (str[i])
{
c(str[i]);
i++;
}
return (i);
}
/*int main()
{
int a;
a = s(0);
printf("\n%d\n", a);
return (0);
}*/