42FileChecker icon indicating copy to clipboard operation
42FileChecker copied to clipboard

Doesn't correct check ft_strnew

Open npiatiko opened this issue 6 years ago • 1 comments

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

npiatiko avatar Nov 15 '18 08:11 npiatiko

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.

jgigault avatar Jan 13 '19 15:01 jgigault