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

Function tf_runner_image

tests/test_main.c:1920–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1918 * without ".exe", which an exact spawn or copy of that path cannot open. */
1919const char *tf_runner_image(int argc, char **argv);
1920const char *tf_runner_image(int argc, char **argv) {
1921#ifdef _WIN32
1922 static char image[4096];
1923 if (!image[0]) {
1924 char *module = cbm_module_path_utf8();
1925 if (module && strlen(module) < sizeof(image)) {
1926 memcpy(image, module, strlen(module) + 1);
1927 }
1928 free(module);
1929 }
1930 if (image[0]) {
1931 return image;
1932 }
1933#endif
1934 return argc > 0 && argv ? argv[0] : NULL;
1935}
1936
1937const char *cbm_test_program_path;
1938

Callers 3

mainFunction · 0.85

Calls 1

cbm_module_path_utf8Function · 0.85

Tested by

no test coverage detected