strncmp
- Синтаксис
-
native strncmp(const string1[], const string2[], num, bool:ignorecase=false);
Переменная | Описание |
---|---|
string1 |
First string (left). |
string2 |
Second string (right). |
num |
Number of characters to compare. |
ignorecase |
If true, comparison is case insensitive. If false (default), comparison is case sensitive. |
- Описание
- Compares two strings parts lexographically.
- Пометка
-
Only available in 1.8.3 and above.
- Возвращает
- -1 if string1 < string2 0 if string1 == string2 1 if string1 > string2