Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created April 14, 2021 05:59
Show Gist options
  • Select an option

  • Save alsamitech/9708b5e7fe0db6c20934d97ae5343eac to your computer and use it in GitHub Desktop.

Select an option

Save alsamitech/9708b5e7fe0db6c20934d97ae5343eac to your computer and use it in GitHub Desktop.
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