diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:13 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:13 +0100 |
commit | b12eef1d56575206538abed426a296fefe22e90e (patch) | |
tree | a029f5ec513ec487d477d791e21f90ae1287965a /src/core/General.h | |
parent | Fix debug menu memory leak (diff) | |
download | re3-b12eef1d56575206538abed426a296fefe22e90e.tar re3-b12eef1d56575206538abed426a296fefe22e90e.tar.gz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.bz2 re3-b12eef1d56575206538abed426a296fefe22e90e.tar.lz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.xz re3-b12eef1d56575206538abed426a296fefe22e90e.tar.zst re3-b12eef1d56575206538abed426a296fefe22e90e.zip |
Diffstat (limited to 'src/core/General.h')
-rw-r--r-- | src/core/General.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/General.h b/src/core/General.h index dde43c0f..de803558 100644 --- a/src/core/General.h +++ b/src/core/General.h @@ -121,6 +121,15 @@ public: return *str2 != '\0'; } + static bool faststrncmp(const char *str1, const char *str2, uint32 count) + { + for(uint32 i = 0; *str1 && i < count; str1++, str2++, i++) { + if (*str1 != *str2) + return true; + } + return false; + } + static bool faststricmp(const char *str1, const char *str2) { for (; *str1; str1++, str2++) { |