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

Function sh_make_count

src/pipeline/pass_shell.c:1870–1880  ·  view source on GitHub ↗

-j N / -l N: N is a count. */

Source from the content-addressed store, hash-verified

1868
1869/* -j N / -l N: N is a count. */
1870static bool sh_make_count(const char *v) {
1871 if (!v || !v[0]) {
1872 return false;
1873 }
1874 for (const char *p = v; *p; p++) {
1875 if (!(*p == '.' || (*p >= '0' && *p <= '9'))) {
1876 return false;
1877 }
1878 }
1879 return true;
1880}
1881
1882/* -C DIR after `base`: DIR from base, an absolute (anchored) DIR alone. */
1883static const char *sh_make_join(CBMArena *a, const char *base, const char *dir) {

Callers 1

sh_makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected