Searched refs:safe_strtol (Results 1 – 4 of 4) sorted by relevance
| /memcached-1.4.29/ |
| H A D | util.h | 13 bool safe_strtol(const char *str, int32_t *out);
|
| H A D | util.c | 85 bool safe_strtol(const char *str, int32_t *out) { in safe_strtol() function
|
| H A D | testapp.c | 259 assert(safe_strtol("123", &val)); in test_safe_strtol() 261 assert(safe_strtol("+123", &val)); in test_safe_strtol() 263 assert(safe_strtol("-123", &val)); in test_safe_strtol() 265 assert(!safe_strtol("", &val)); // empty in test_safe_strtol() 266 assert(!safe_strtol("123BOGUS", &val)); // non-numeric in test_safe_strtol() 267 assert(!safe_strtol("92837498237498237498029383", &val)); // out of range in test_safe_strtol() 268 assert(!safe_strtol(" issue221", &val)); // non-numeric in test_safe_strtol() 274 assert(safe_strtol("2147483647", &val)); // (- (expt 2.0 31) 1) in test_safe_strtol() 281 assert(safe_strtol(" 123 foo", &val)); in test_safe_strtol() 376 assert(safe_strtol(buffer + 10, &val)); in start_server() [all …]
|
| H A D | memcached.c | 3357 && safe_strtol(tokens[3].value, &exptime_int) in process_update_command() 3358 && safe_strtol(tokens[4].value, (int32_t *)&vlen))) { in process_update_command() 3446 if (!safe_strtol(tokens[2].value, &exptime_int)) { in process_touch_command() 5085 if (!safe_strtol(s, &the_port)) { in server_sockets() 6047 if (!safe_strtol(subopts_value, &settings.slab_chunk_size_max)) { in main()
|