Commit b778fb38 authored by Max Kellermann's avatar Max Kellermann

util/StringAPI: add raw strcmp() wrapper

parent 32290d5e
......@@ -127,6 +127,13 @@ UnsafeCopyStringP(char *dest, const char *src) noexcept
#endif
}
gcc_pure gcc_nonnull_all
static inline int
StringCompare(const char *a, const char *b) noexcept
{
return strcmp(a, b);
}
/**
* Checks whether #a and #b are equal.
*/
......
......@@ -120,6 +120,13 @@ UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
#endif
}
gcc_pure gcc_nonnull_all
static inline int
StringCompare(const wchar_t *a, const wchar_t *b) noexcept
{
return wcscmp(a, b);
}
/**
* Checks whether str1 and str2 are equal.
* @param str1 String 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment