summaryrefslogtreecommitdiffhomepage
path: root/src/string/ntapi_tt_strcmp_multibyte.c
blob: ce5e5d12bf12270b24d0cfb5b74955ef2667e6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/********************************************************/
/*  ntapi: Native API core library                      */
/*  Copyright (C) 2013--2021  SysDeer Technologies, LLC */
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
/********************************************************/

#include <psxtypes/psxtypes.h>
#include <ntapi/nt_string.h>
#include "ntapi_impl.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;
}