So the following c function I implemented in segfaulting when I test it with the following code:
char line1[] = "sw $s2, 0($s3)";
char* bc = removeAFromABC(line1);
and this the the method that should return a char pointer = "$s2, 0($s3):
char* removeAFromABC(char* abc) {
char* a = strtok(abc, " $,\t\n");
char* b = strtok(NULL, " \t");
char* c = strtok(NULL, " \t");
char bc[MAXIMUM_LINE_LENGTH + 1];
strcpy(bc, b);
strcat(bc, c);
return bc;
}