MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / is_str_num

Function is_str_num

libCacheSim/traceReader/reader.c:651–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651bool is_str_num(const char *str, size_t len) {
652 for (size_t i = 0; i < len; i++) {
653 if (!(isdigit(str[i]) || (str[i] >= 'a' && str[i] <= 'f') ||
654 (str[i] >= 'A' && str[i] <= 'F')))
655 return false;
656 }
657 return true;
658}
659
660#ifdef __cplusplus
661}

Callers 1

csv_cb1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected