mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-25 15:25:04 -04:00
17 lines
251 B
C
17 lines
251 B
C
#include "global.h"
|
|
|
|
s32 __osStrcmp(const char* str1, const char* str2) {
|
|
char c1;
|
|
char c2;
|
|
|
|
do {
|
|
c1 = *str1++;
|
|
c2 = *str2++;
|
|
if (c1 != c2) {
|
|
return c1 - c2;
|
|
}
|
|
} while (c1);
|
|
|
|
return 0;
|
|
}
|