Commit e98ce710 authored by Max Kellermann's avatar Max Kellermann

util/WStringAPI: add wcsncmp() wrapper

parent 79d10045
......@@ -126,6 +126,13 @@ StringCompare(const wchar_t *a, const wchar_t *b) noexcept
return wcscmp(a, b);
}
gcc_pure gcc_nonnull_all
static inline int
StringCompare(const wchar_t *a, const wchar_t *b, size_t n) noexcept
{
return wcsncmp(a, b, n);
}
/**
* 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