MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sh_numberish

Function sh_numberish

src/pipeline/pass_shell.c:1352–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350}
1351
1352static bool sh_numberish(const char *v) {
1353 if (!v[0] || v[0] < '0' || v[0] > '9') {
1354 return false;
1355 }
1356 for (const char *p = v; *p; p++) {
1357 if (!((*p >= '0' && *p <= '9') || *p == '.' || strchr("smhd", *p))) {
1358 return false;
1359 }
1360 }
1361 return true;
1362}
1363
1364/* Word i of argv is an option, assignment or count a wrapper takes before
1365 * the program: by its value, or -- the value unknown -- by its text

Callers 2

sh_wrapper_argFunction · 0.85
sh_findFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected