From the UCRT source (strcmp.asm):
CHAR_TYPE EQU BYTE
CHAR_SIZE = sizeof CHAR_TYPE
Test case:
.386
.model flat
CHAR_T EQU SBYTE
WCHAR_T EQU WORD
.code
mov eax,size CHAR_T ; 1
mov eax,size WCHAR_T ; 2
mov eax,sizeof CHAR_T ; 1
mov eax,sizeof WCHAR_T ; 2
mov eax,type CHAR_T ; 0
mov eax,type WCHAR_T ; 0
mov eax,length CHAR_T ; 1
mov eax,length WCHAR_T ; 2
end
From the UCRT source (strcmp.asm):
Test case: