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

Function th_path_join

tests/test_helpers.h:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#define TH_PATH(base, rel) th_path_join(base, rel)
32
33static inline const char *th_path_join(const char *base, const char *rel) {
34 static char buf[4][1024];
35 static int idx = 0;
36 int i = idx;
37 idx = (idx + 1) & 3;
38 snprintf(buf[i], sizeof(buf[i]), "%s/%s", base, rel);
39 return buf[i];
40}
41
42/* ── File writing ─────────────────────────────────────────────── */
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected