/********************************************************/
/* 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_strncmp_multibyte(
__in const char * a,
__in const char * b,
__in size_t n)
{
if (n == 0)
return 0;
for (--n; n && (*a == *b) && *a; a++, b++)
n--;
return (int)*a - (int)*b;
}