Home
last modified time | relevance | path

Searched refs:safe_strtoull (Results 1 – 4 of 4) sorted by relevance

/memcached-1.4.29/
H A Dutil.h10 bool safe_strtoull(const char *str, uint64_t *out);
H A Dutil.c14 bool safe_strtoull(const char *str, uint64_t *out) { in safe_strtoull() function
H A Dtestapp.c211 assert(safe_strtoull("123", &val)); in test_safe_strtoull()
213 assert(safe_strtoull("+123", &val)); in test_safe_strtoull()
215 assert(!safe_strtoull("", &val)); // empty in test_safe_strtoull()
216 assert(!safe_strtoull("123BOGUS", &val)); // non-numeric in test_safe_strtoull()
217 assert(!safe_strtoull("92837498237498237498029383", &val)); // out of range in test_safe_strtoull()
218 assert(!safe_strtoull(" issue221", &val)); // non-numeric in test_safe_strtoull()
221 assert(safe_strtoull("18446744073709551615", &val)); // 2**64 - 1 in test_safe_strtoull()
223 assert(!safe_strtoull("18446744073709551616", &val)); // 2**64 in test_safe_strtoull()
224 assert(!safe_strtoull("-1", &val)); // negative in test_safe_strtoull()
H A Dmemcached.c3374 if (!safe_strtoull(tokens[5].value, &req_cas_id)) { in process_update_command()
3489 if (!safe_strtoull(tokens[2].value, &delta)) { in process_arithmetic_command()
3558 if (!safe_strtoull(ptr, &value)) { in do_add_delta()