Use Windows' standard library functions, like this:
Code
int __cdecl strncmp(const char *string1, const char *string2, unsigned int count);
API(strncmp,msvcrt)

void main(void){
	char* str1 = "Look HerE";
	char* str2 = "Look Here";
	printf("\n%d", strncmp(str1, str2, 8));
	printf("\n%d", strncmp(str1, str2, 9));
}

/* output:
0
-32
*/

https://docs.microsoft.com/en-us/cp...p-wcsncmp-mbsncmp-mbsncmp-l?view=vs-2019
https://zorro-project.com/manual/en/litec_api.htm