strcmp
- Синтаксис
-
native strcmp(const string1[], const string2[], ignorecase=0);
Переменная | Описание |
---|---|
string1 |
First string (left). |
string2 |
Second string (right). |
ignorecase |
If true, comparison is case insensitive. If false (default), comparison is case sensitive. |
- Описание
- Compares two strings lexographically.
- Возвращает
- -1 if string1 < string2 0 if string1 == string2 1 if string1 > string2