is_str_num
- Синтаксис
-
stock bool:is_str_num(const sString[]) { new i = 0; while (sString[i] && isdigit(sString[i])) { ++i; } return sString[i] == 0 && i != 0; }
Переменная | Описание |
---|---|
sString |
Character to test. |
- Описание
- Returns whether a given string contains only digits. This returns false for zero-length strings.
- Возвращает
- True if string contains only digit, otherwise false.