Skip to content

Instantly share code, notes, and snippets.

@alsamitech
Created June 26, 2021 07:13
Show Gist options
  • Select an option

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

Select an option

Save alsamitech/decf54c7aaf2a5a5bf706b2dc151d7a4 to your computer and use it in GitHub Desktop.
starts_with but makes more sense
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