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

Function runf

tests/test_artifact.c:701–711  ·  view source on GitHub ↗

printf-formatted system() wrapper; returns the exit status. */

Source from the content-addressed store, hash-verified

699
700/* printf-formatted system() wrapper; returns the exit status. */
701static int runf(const char *fmt, ...) {
702 char cmd[4096];
703 va_list ap;
704 va_start(ap, fmt);
705 int n = vsnprintf(cmd, sizeof(cmd), fmt, ap);
706 va_end(ap);
707 if (n < 0 || (size_t)n >= sizeof(cmd)) {
708 return -1;
709 }
710 return system(cmd);
711}
712
713static void git_init(const char *repo) {
714 runf("git -C \"%s\" init -q", repo);

Callers 4

git_initFunction · 0.85
clone_to_bFunction · 0.85
test_artifact.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected