Skip to content

Commit

Permalink
Fix incorrect function name
Browse files Browse the repository at this point in the history
This function implements `strncmp`, not `memcmp`
  • Loading branch information
mike8699 committed Nov 21, 2023
1 parent cdabe64 commit 8d7b72b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/code/ph.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.definelabel strncpy, 0x20470a8
.definelabel strcat, 0x20470f8
.definelabel strcmp, 0x2047128
.definelabel memcmp, 0x204723c
.definelabel strncmp, 0x204723c
.definelabel strrchr, 0x2047270
.definelabel strstr, 0x20472ac
.definelabel sprintf, 0x200c8d0
Expand Down
2 changes: 1 addition & 1 deletion base/code/ph.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// This header file contains definitions for functions, variables, struct
// definitions, etc that are present in the base game.

extern int memcmp(void *s1, void *s2, int size);
extern void strcat(char *dest, char *src);
extern int strcmp(char *s1, char *s2);
extern int strncmp(char *s1, char *s2, int n);
extern void strcpy(char *dest, char *src);
extern void strncpy(char *dest, char *src, int n);
extern int32_t strlen(char *s);
Expand Down

0 comments on commit 8d7b72b

Please sign in to comment.