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

KO on Moulinette at ft_strrchr.c function #5

Closed
u-santos opened this issue Jun 12, 2021 · 2 comments
Closed

KO on Moulinette at ft_strrchr.c function #5

u-santos opened this issue Jun 12, 2021 · 2 comments

Comments

@u-santos
Copy link

Assuming I have a string "taxtripouille" and I search for the last occurrence of the character "x", the code returned null instead of "xtripouille".

@Tripouille
Copy link
Owner

Hi, char s3[] = "taxtripouille"; /* 7 */ check(ft_strrchr(s3, 'x') == s3 + 3); showLeaks(); should be s3 + 2.

@Tripouille
Copy link
Owner

Hi, if you want me to add specific test for your case please use the makefile command sendfunction, for your case make sendstrrchr. README: If all your tests are OK (with valgrind) and the moulinette KO you, please send an email with make sendfunction ex: make sendsubstr or contact me on slack/discord for improvements.

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

Successfully merging a pull request may close this issue.

2 participants