summaryrefslogtreecommitdiffhomepage
path: root/src/string/ntapi_tt_strcmp_utf16.c
blob: 7f13c7304bfd413cf68926022e27bc7ecd74dfcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/********************************************************/
/*  ntapi: Native API core library                      */
/*  Copyright (C) 2013--2017  Z. Gilboa                 */
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
/********************************************************/

#include <psxtypes/psxtypes.h>
#include <ntapi/nt_string.h>

int __cdecl __ntapi_tt_strcmp_utf16(
	__in	const wchar16_t * a,
	__in	const wchar16_t * b)
{
	for (; (*a == *b) && *a; a++, b++)
		(void)0;

	return (int)*a - (int)*b;
}