Skip to content

Instantly share code, notes, and snippets.

@johan-bjareholt
Created February 2, 2014 00:00
Show Gist options
  • Save johan-bjareholt/8761009 to your computer and use it in GitHub Desktop.
Save johan-bjareholt/8761009 to your computer and use it in GitHub Desktop.
bool check_function(const char function_name[], const char input[]){
int len = 0;
while (function_name[len] != NULL){
len++;
}
if (strncmp(input, function_name, len) == 0) {
return true;
}
else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment