Open coscialp opened 3 years ago
if (!(str = (char *)malloc(sizeof(char) * (j + 1)))) { return (NULL); } str = ft_substr(s1, i, j - i + 1);
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
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