diff --git a/src/driver/string.hpp b/src/driver/string.hpp index d4a3d0d..27aeb3f 100644 --- a/src/driver/string.hpp +++ b/src/driver/string.hpp @@ -17,4 +17,22 @@ namespace string RtlStringCchPrintfA(buffer, VA_BUFFER_SIZE, message, std::forward(args)...); return buffer; } + + inline bool equal(const char* s1, const char* s2) + { + if (!s1) + { + return !s2; + } + + while (*s1) + { + if (*(s1++) != *(s2++)) + { + return false; + } + } + + return !*s2; + } }