Skip to content

Commit

Permalink
Use SDK strcmp instead of re-implementing
Browse files Browse the repository at this point in the history
  • Loading branch information
mike8699 committed Nov 18, 2023
1 parent 00ab679 commit cdabe64
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions base/code/set_initial_flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ static void set_flag(uint32_t addr, uint8_t bit) {
*((uint8_t *)addr) |= bit;
}

static int strcmp(char *X, char *Y) {
// TODO: replace with PH's native strcmp
while (*X) {
if (*X != *Y) {
break;
}

// move to the next pair of characters
X++;
Y++;
}

return *(const unsigned char *)X - *(const unsigned char *)Y;
}

void set_initial_flags(uint32_t base_flag_address) {
Flag *f = (Flag *)(0x23DF24C);

Expand Down

0 comments on commit cdabe64

Please sign in to comment.