commit
This commit is contained in:
@@ -10,16 +10,30 @@
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "ft_stock_str.h"
|
||||
|
||||
struct s_stock_str *ft_strs_to_tab(int ac, char **av);
|
||||
|
||||
int main(void)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
t_stock_str *result;
|
||||
char **av;
|
||||
int ac;
|
||||
int i;
|
||||
|
||||
result = ft_strs_to_tab(ac, av)
|
||||
(void) result;
|
||||
i = 0;
|
||||
while (i < argc - 1)
|
||||
{
|
||||
argv[i] = argv[i + 1];
|
||||
i++;
|
||||
}
|
||||
argc--;
|
||||
result = ft_strs_to_tab(argc, argv);
|
||||
i = 0;
|
||||
while (result[i].size > 0)
|
||||
{
|
||||
printf("result[%d] = { size=%d, str=%s, copy=%s}\n", i, result[i].size, result[i].str, result[i].copy);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user