Blame src/string/ntapi_tt_strcmp_utf16.c

060ead
/********************************************************/
060ead
/*  ntapi: Native API core library                      */
dde53a
/*  Copyright (C) 2013--2017  Z. Gilboa                 */
060ead
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
060ead
/********************************************************/
060ead
060ead
#include <psxtypes/psxtypes.h>
060ead
#include <ntapi/nt_string.h>
060ead
060ead
int __cdecl __ntapi_tt_strcmp_utf16(
060ead
	__in	const wchar16_t * a,
060ead
	__in	const wchar16_t * b)
060ead
{
060ead
	for (; (*a == *b) && *a; a++, b++)
060ead
		(void)0;
060ead
060ead
	return (int)*a - (int)*b;
060ead
}