MCPcopy Create free account
hub / github.com/behdad/glyphy / parse_uint

Function parse_uint

bench/bench-encode.cc:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static bool
48parse_uint (const char *arg, unsigned int *value)
49{
50 char *end = NULL;
51 unsigned long parsed = strtoul (arg, &end, 10);
52
53 if (!arg[0] || !end || *end || parsed > UINT_MAX)
54 return false;
55
56 *value = (unsigned int) parsed;
57 return true;
58}
59
60static double
61ns_to_ms (uint64_t ns)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected