Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with test 6 of ft_memchr #43

Open
SachaNevsky opened this issue Nov 19, 2020 · 1 comment
Open

Possible issue with test 6 of ft_memchr #43

SachaNevsky opened this issue Nov 19, 2020 · 1 comment

Comments

@SachaNevsky
Copy link

Test 6 for ft_memchr, from ./Libftest/tests/Part1_functions/ft_memchr:

Me recreating the same test with my ft_memchr function and the default memchr function:

My output:

Test output:

The expected output in test06.output:

@jtoty
Copy link
Owner

jtoty commented Dec 27, 2020

I get the same output with the default memchr function and test06.output file

#include <string.h>
#include <stdio.h>

int main(void)
{
	int tab[7] = {-49, 49, 1, -1, 0, -2, 2};
	printf("%s", memchr(tab, -1, 7));
	return 0;
}
diff -y default_memchr test06.output 
???1								???1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants