MCPcopy Create free account
hub / github.com/beefytech/Beef / StringToIntegerUntilCharWithCheck

Function StringToIntegerUntilCharWithCheck

BeefRT/gperftools/src/base/sysinfo.cc:676–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674
675template<typename T>
676static bool StringToIntegerUntilCharWithCheck(
677 T *outptr, char *text, int base, int c, char **endptr) {
678 *outptr = StringToIntegerUntilChar<T>(*endptr, base, c, endptr);
679 if (*endptr == NULL || **endptr == '\0') return false;
680 ++(*endptr);
681 return true;
682}
683
684static bool ParseProcMapsLine(char *text, uint64 *start, uint64 *end,
685 char *flags, uint64 *offset,

Callers 1

ParseProcMapsLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected