Skip to content

Conversation

@sadeem-albir
Copy link
Contributor

In case s wasn't big enough for whatever reason, the function would still work with this optimized version. Also, for the purpose of compactness, comparing with the null-character can be omitted, e.g "if (x != '\0')" is the same as "if (x != 0)" which is the same as "if (x)".

In case s wasn't big enough for whatever reason, the function would still work with this optimized version. Also, for the purpose of compactness, comparing with the null-character can be omitted, e.g "if (x != '\0')" is the same as "if (x != 0)" which is the same as "if (x)".
@ohkimur ohkimur merged commit 95cd10e into ohkimur:main Apr 1, 2024
@ohkimur
Copy link
Owner

ohkimur commented Apr 1, 2024

@sadeem-albir Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants