0
0
This commit is contained in:
2021-08-25 22:19:39 +02:00
parent d4715b6683
commit eea85ffae9
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ struct s_stock_str *ft_strs_to_tab(int ac, char **av)
t_stock_str *result; t_stock_str *result;
int i; int i;
result = (t_stock_str *) malloc((ac + 1) * sizeof(result)); result = malloc((ac + 1) * sizeof(t_stock_str));
if (result == NULL) if (result == NULL)
return (NULL); return (NULL);
i = 0; i = 0;

View File

@@ -49,7 +49,7 @@ struct s_stock_str *ft_strs_to_tab(int ac, char **av)
t_stock_str *result; t_stock_str *result;
int i; int i;
result = (t_stock_str *) malloc((ac + 1) * sizeof(result)); result = malloc((ac + 1) * sizeof(t_stock_str));
if (result == NULL) if (result == NULL)
return (NULL); return (NULL);
i = 0; i = 0;
@@ -66,7 +66,7 @@ struct s_stock_str *ft_strs_to_tab(int ac, char **av)
return (result); return (result);
} }
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
t_stock_str *par; t_stock_str *par;
int i; int i;