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

strcmp and strncmp weird behavior #29

Open
capitanpiluso opened this issue Jun 15, 2017 · 0 comments
Open

strcmp and strncmp weird behavior #29

capitanpiluso opened this issue Jun 15, 2017 · 0 comments

Comments

@capitanpiluso
Copy link

The testfile is behaving really weirdly.
The outputs of the standard library's strcmp is always 1, -1 or 0.
The testfile is somehow failing at the comparison.

For example, the difference between "a" and "z"
strcmp returns -1 and my ft_strcmp returns -1 as well, and yet your testfile fails me.

But other people's ft_strcmp returns a difference instead, so somehow your testfile passes the following values: (again, comparing "a" and "z")
strcmp returns -1 and other people's ft_strcmp returns -25, and yet your testfile passes them.

I checked the logic in 1266 and 1199 and seems to be fine, but somehow it is behaving weirdly.
Where is the Maintest getting its string.h?

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

1 participant