summaryrefslogtreecommitdiffhomepage
path: root/src/string
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-28 15:27:34 -0400
committermidipix <writeonce@midipix.org>2016-06-28 19:41:46 -0400
commitc30ed71d8c5375cd63d413c47f7368e2ead104c4 (patch)
tree2d2e190dfbbc42747da0c21cfc89b8f2ae2f9ea6 /src/string
parent7f9f58a65c9d12370508b24799a35d78201762b5 (diff)
downloadntapi-c30ed71d8c5375cd63d413c47f7368e2ead104c4.tar.bz2
ntapi-c30ed71d8c5375cd63d413c47f7368e2ead104c4.tar.xz
string functions: added __ntapi_tt_strcmp_multibyte().
Diffstat (limited to 'src/string')
-rw-r--r--src/string/ntapi_tt_strcmp_multibyte.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/string/ntapi_tt_strcmp_multibyte.c b/src/string/ntapi_tt_strcmp_multibyte.c
new file mode 100644
index 0000000..b6d04b2
--- /dev/null
+++ b/src/string/ntapi_tt_strcmp_multibyte.c
@@ -0,0 +1,18 @@
+/********************************************************/
+/* ntapi: Native API core library */
+/* Copyright (C) 2013--2016 Z. Gilboa */
+/* Released under GPLv2 and GPLv3; see COPYING.NTAPI. */
+/********************************************************/
+
+#include <psxtypes/psxtypes.h>
+#include <ntapi/nt_string.h>
+
+int __cdecl __ntapi_tt_strcmp_multibyte(
+ __in const char * a,
+ __in const char * b)
+{
+ for (; (*a == *b) && *a; a++, b++)
+ (void)0;
+
+ return (int)*a - (int)*b;
+}