mfsStrCmp

Sytnax

s32 mfsStrCmp(const u8* s1, const u8* s2)

Arguments

s1   Character string1
s2   Character string2

Return value

Comparison retuls

Function

Compares two character strings

Description

This function compares character string s1 with character string s2. The comparison begins with the leading characters and continues until a different character is detected or one character string ends. Uppercase and lowercase characters are distinguished.

The meaning of the return value is as follows.

< 0 (negative value) s1 is less than s2
= 0 s1 is equal to s2
> 0 (positive value) s1 is greater than s2