| 860 | int64_t ink_atoi64(const char *, int); |
| 861 | |
| 862 | static inline int |
| 863 | ink_atoi(const char *str) |
| 864 | { |
| 865 | int64_t val = ink_atoi64(str); |
| 866 | |
| 867 | if (val > INT_MAX) { |
| 868 | return INT_MAX; |
| 869 | } else if (val < INT_MIN) { |
| 870 | return INT_MIN; |
| 871 | } else { |
| 872 | return static_cast<int>(val); |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | static inline int |
| 877 | ink_atoi(const char *str, int len) |
no test coverage detected