diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2021-08-11 03:15:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-10 22:15:31 -0400 |
| commit | 82cc274b6aa358bab5de54f85edab1727916eb33 (patch) | |
| tree | 973de5958ffd4c357302473cf1aef93ae493f58e /src/boot_O2/__osStrcmp.c | |
| parent | 93333067387172ec0929799a6797fe5aac0a69de (diff) | |
Sort boot files (#260)
Diffstat (limited to 'src/boot_O2/__osStrcmp.c')
| -rw-r--r-- | src/boot_O2/__osStrcmp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/boot_O2/__osStrcmp.c b/src/boot_O2/__osStrcmp.c new file mode 100644 index 000000000..10bd2fa92 --- /dev/null +++ b/src/boot_O2/__osStrcmp.c @@ -0,0 +1,16 @@ +#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; +} |
