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

Function execl

tests/test_main.c:1614–1626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612enum { TF_COVERAGE_EXECL_ARG_CAP = 64 };
1613
1614int execl(const char *path, const char *arg0, ...) {
1615 char *argv[TF_COVERAGE_EXECL_ARG_CAP];
1616 int argc = 0;
1617 va_list args;
1618 va_start(args, arg0);
1619 for (const char *arg = arg0; arg != NULL && argc < TF_COVERAGE_EXECL_ARG_CAP - 1;
1620 arg = va_arg(args, const char *)) {
1621 argv[argc++] = (char *)arg;
1622 }
1623 va_end(args);
1624 argv[argc] = NULL;
1625 return execv(path, argv);
1626}
1627#endif /* !_WIN32 */
1628
1629/* Runs first in every process of this image, role children included: they

Callers 7

test_httpd.cFile · 0.85
test_daemon_ipc.cFile · 0.85
executeFunction · 0.85

Calls 1

execvFunction · 0.85

Tested by

no test coverage detected