42FileChecker
42FileChecker copied to clipboard
Doesn't correct check ft_strnew
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.