Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (11 sloc) 0.387 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 */
a977b55 @dustin safe_strou?ll functions should operate on u?int64_t types.
dustin authored
10 bool safe_strtoull(const char *str, uint64_t *out);
11 bool safe_strtoll(const char *str, int64_t *out);
Something went wrong with that request. Please try again.