alelievr / libft-unit-test

456 stars 88 forks source link

Adding crush tests for ft_strlcat and ft_strnstr #129

Closed mfunyu closed 2 years ago

mfunyu commented 2 years ago

What

strlcat strnstr
1 strlcat(NULL, "abc", 1); crush strnstr(NULL, "abc", 1);
2 strlcat("abc", NULL, 0); crush strnstr("abc", NULL, 0);
3 strlcat(NULL, "abc", 0); must not crush strnstr(NULL, "abc", 0);

Why

Notes