[][src]Function qt_core::qstrcmp_2_char

pub unsafe fn qstrcmp_2_char(
    str1: impl CastInto<Ptr<c_char>>,
    str2: impl CastInto<Ptr<c_char>>
) -> c_int

A safe strcmp() function.

Calls C++ function: int qstrcmp(const char* str1, const char* str2).

C++ documentation:

A safe strcmp() function.

Compares str1 and str2. Returns a negative value if str1 is less than str2, 0 if str1 is equal to str2 or a positive value if str1 is greater than str2.

Special case 1: Returns 0 if str1 and str2 are both 0.

Special case 2: Returns an arbitrary non-zero value if str1 is 0 or str2 is 0 (but not both).

See also qstrncmp(), qstricmp(), qstrnicmp(), and 8-bit Character Comparisons.