Skip to content

Instantly share code, notes, and snippets.

@khajavi
Created April 4, 2013 13:02
Show Gist options
  • Save khajavi/5310166 to your computer and use it in GitHub Desktop.
Save khajavi/5310166 to your computer and use it in GitHub Desktop.
startWith( prefix, String )
bool startWith( const char* prefix, const char* string ) {
return strncmp( prefix, string, strlen( prefix ) ) == 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment