Open npiatiko opened 6 years ago
Not correct, but successful checked by 42filechecker end validated by MOULINETTE :
char *ft_strnew(size_t size) { char *str; if ((str = (char*)malloc(++size)) == 0) return (NULL); while (size) { *(str + size) = '\0'; size--; } *str = '\0'; return (str); }
PS problem in ++size
Hello @npiatiko Thanks for the issue, can you provide more information? Do you mean that moulitest, libft-unit-test and/or Maintest should have failed and why? Thanks for your help.
moulitest
libft-unit-test
Maintest
Not correct, but successful checked by 42filechecker end validated by MOULINETTE :
PS problem in ++size