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

Function heap_strndup

src/cypher/cypher.c:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static char *heap_strndup(const char *s, size_t n) {
60 char *d = malloc(n + SKIP_ONE);
61 if (d) {
62 memcpy(d, s, n);
63 d[n] = '\0';
64 }
65 return d;
66}
67
68/* ══════════════════════════════════════════════════════════════════
69 * LEXER

Callers 1

lex_push_nFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected