LaurineDenis / Libft

0 stars 0 forks source link

ft_strtrim.c #7

Open coscialp opened 3 years ago

coscialp commented 3 years ago

if (!(str = (char *)malloc(sizeof(char) * (j + 1)))) { return (NULL); } str = ft_substr(s1, i, j - i + 1);

Le malloc est faux et inutile aussi