stricmp
-
Hi,
ich verstehe eine Sache nicht:
// < 0 string1 less than string2 // 0 string1 identical to string2 // > 0 string1 greater than string2 char c[] = "z"; char d[] = "aa"; int i = _stricmp(c, d); // Ergebnis 1, d.h string1 greater than string2Weshalb ist c größer als d ? Obwohls kürzer ist..
Muss stricmp nachbauen. Will aber zuerst verstehen wie stricmp vergleicht.
-
The stricmp function lexicographically compares lowercase versions of string1 and string2 and returns a value indicating their relationship