commit
This commit is contained in:
@@ -17,17 +17,20 @@
|
||||
|
||||
char **ft_split(char *str, char *charset);
|
||||
|
||||
int main(void)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char str[32];
|
||||
char charset[32];
|
||||
char *str;
|
||||
char *charset;
|
||||
char **strs;
|
||||
int i;
|
||||
|
||||
printf("Input String [Max 32]: ");
|
||||
scanf("%s", str);
|
||||
printf("Input Charset [Max 32]: ");
|
||||
scanf("%s", charset);
|
||||
if (argc < 2)
|
||||
{
|
||||
printf("%s <str> <charset>\n", argv[0]);
|
||||
return (1);
|
||||
}
|
||||
str = argv[1];
|
||||
charset = argv[2];
|
||||
strs = ft_split(str, charset);
|
||||
printf("str=%s charset=%s (ft_split)\n", str, charset);
|
||||
i = 0;
|
||||
|
||||
Reference in New Issue
Block a user