Skip to content
Snippets Groups Projects
Commit 0bc41ac6 authored by Stephen D's avatar Stephen D
Browse files

Reformatting

parent e020f6f8
No related branches found
No related tags found
No related merge requests found
......@@ -80,14 +80,14 @@ void register_command(char *cmd, void (*handler)(char *)) {
int parse_command(char *linein) {
for(int i = 0; i < 255; i++) {
char cmd[256] = "";
char args[256] = "";
strsplit(linein, ' ', cmd, args);
tolowercase(cmd);
if(strcmp(cmd, commands[i]) == 0) {
cmd_handlers[i](args);
return 1;
}
char cmd[256] = "";
char args[256] = "";
strsplit(linein, ' ', cmd, args);
tolowercase(cmd);
if(strcmp(cmd, commands[i]) == 0) {
cmd_handlers[i](args);
return 1;
}
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment