Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (11 sloc) 0.401 kb
420aa2d @bradfitz start of the incr fix, rearranges a bunch, adds util, tests, etc
bradfitz authored
1 /*
2223858 @bradfitz add comment
bradfitz authored
2 * Wrappers around strtoull/strtoll that are safer and easier to
3 * use. For tests and assumptions, see internal_tests.c.
4 *
420aa2d @bradfitz start of the incr fix, rearranges a bunch, adds util, tests, etc
bradfitz authored
5 * str a NULL-terminated base decimal 10 unsigned integer
6 * out out parameter, if conversion succeeded
7 *
8 * returns true if conversion succeeded.
9 */
10 bool safe_strtoull(const char *str, unsigned long long *out);
674166c @bradfitz flesh out safe_strto* util funcs, and make incrdecr use them
bradfitz authored
11 bool safe_strtoll(const char *str, long long *out);
12
420aa2d @bradfitz start of the incr fix, rearranges a bunch, adds util, tests, etc
bradfitz authored
13
Something went wrong with that request. Please try again.