Helper functions for various types *****************/
| 154 | |
| 155 | /*************** Helper functions for various types *****************/ |
| 156 | long get_long(const char *ptr, const char *what) |
| 157 | { |
| 158 | char *endptr; |
| 159 | long ret; |
| 160 | |
| 161 | ret = strtol(ptr, &endptr, 0); |
| 162 | if (*endptr) { |
| 163 | ERROR("%s, \"%s\" is not a valid integer!", what, ptr); |
| 164 | } |
| 165 | return ret; |
| 166 | } |
| 167 | |
| 168 | unsigned long long get_long_long(const char *ptr, const char *what) |
| 169 | { |
no test coverage detected