Created
April 14, 2021 05:59
-
-
Save alsamitech/9708b5e7fe0db6c20934d97ae5343eac to your computer and use it in GitHub Desktop.
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){ | |
| long unsigned int fma=strlen(_in); | |
| for(unsigned int i=0;i<(fma-1);i++){ | |
| if(_in[i]==0x0||startsw[i]==0x0){ | |
| break; | |
| } | |
| 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