Created
August 27, 2021 20:52
-
-
Save alsamitech/058344d3e439c358a35813f674468314 to your computer and use it in GitHub Desktop.
the fifth iteration of starts_with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_Bool starts_with(const char* restrict str, const char* restrict sw){ | |
while(*sw) | |
if(*sw++!=*str++)return 0; | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment