Skip to content

strncmp(str, "foo", sizeof("foo") - 1) is the same as memcmp(str, "foo", sizeof("foo") - 1), but slower #53

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

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

stefan11111
Copy link
Owner

…o", sizeof("foo") - 1), but faster

@stefan11111 stefan11111 changed the title strncmp(str, "foo", sizeof("foo") - 1) is the same as memcmp(str, "fo… strncmp(str, "foo", sizeof("foo") - 1) is the same as memcmp(str, "foo", sizeof("foo") - 1), but slower Sep 6, 2024
@stefan11111 stefan11111 merged commit 41e0549 into master Sep 6, 2024
1 check passed
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 this pull request may close these issues.

1 participant