MCPcopy Create free account
hub / github.com/antirez/ds4 / path_join

Function path_join

gguf-tools/deepseek4-quantize.c:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106static char *xstrdup(const char *s) {
107 size_t n = strlen(s);
108 char *p = xmalloc(n + 1);
109 memcpy(p, s, n + 1);
110 return p;
111}
112
113static char *xstrndup(const char *s, size_t n) {
114 char *p = xmalloc(n + 1);
115 memcpy(p, s, n);
116 p[n] = '\0';
117 return p;
118}
119
120static char *path_join(const char *a, const char *b) {
121 const size_t na = strlen(a);

Callers 2

db_find_shardFunction · 0.70
db_openFunction · 0.70

Calls 1

xmallocFunction · 0.70

Tested by

no test coverage detected