File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
void ft_putchar (char c )
4
4
{
5
- write (1 , & c , 1 );
5
+ write (1 , & c , 1 );
6
6
}
7
7
8
8
int ft_isspace (char c )
9
9
{
10
- if (c == ' ' || c == '\t' )
11
- return (1 );
12
- return (0 );
10
+ if (c == ' ' || c == '\t' )
11
+ return (1 );
12
+ return (0 );
13
13
}
14
14
15
15
void first_word (char * str )
16
16
{
17
- int i ;
17
+ int i ;
18
18
19
- i = 0 ;
20
- while (str [i ] && ft_isspace (str [i ]))
21
- i ++ ;
22
- while (str [i ] && !(ft_isspace (str [i ])))
23
- ft_putchar (str [i ++ ]);
19
+ i = 0 ;
20
+ while (str [i ] && ft_isspace (str [i ]))
21
+ i ++ ;
22
+ while (str [i ] && !(ft_isspace (str [i ])))
23
+ ft_putchar (str [i ++ ]);
24
24
}
25
25
26
26
int main (int argc , char * argv [])
27
27
{
28
- if (argc == 2 )
29
- first_word (argv [1 ]);
30
- ft_putchar ('\n' );
31
- return (0 );
28
+ if (argc == 2 )
29
+ first_word (argv [1 ]);
30
+ ft_putchar ('\n' );
31
+ return (0 );
32
32
}
You can’t perform that action at this time.
0 commit comments