Created
October 2, 2014 10:15
-
-
Save Mause/b59e2fc914e4bfa7f2dc to your computer and use it in GitHub Desktop.
This file contains 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
#include <string.h> | |
bool startswith(char* poss, char* chunk) { | |
char* result = strstr(poss, chunk); | |
return result != NULL && result == poss; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment