Created
June 26, 2021 07:13
-
-
Save alsamitech/decf54c7aaf2a5a5bf706b2dc151d7a4 to your computer and use it in GitHub Desktop.
starts_with but makes more sense
This file contains hidden or 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
| unsigned char starts_with(char* _in, char* startsw){ | |
| for(long unsigned int i=0;_in[i]&&startsw[i];i++) | |
| if(_in[i]!=startsw[i]) | |
| return 1; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment