From c30ed71d8c5375cd63d413c47f7368e2ead104c4 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 28 Jun 2016 15:27:34 -0400 Subject: string functions: added __ntapi_tt_strcmp_multibyte(). --- src/string/ntapi_tt_strcmp_multibyte.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/string/ntapi_tt_strcmp_multibyte.c (limited to 'src/string') 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 +#include + +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; +} -- cgit v1.2.3