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

Function php_put

internal/cbm/doclink_php.c:86–94  ·  view source on GitHub ↗

out[*w..] += s[0, n); false when it does not fit. */

Source from the content-addressed store, hash-verified

84
85/* out[*w..] += s[0, n); false when it does not fit. */
86static bool php_put(char *out, size_t cap, size_t *w, const char *s, size_t n) {
87 if (*w + n + SKIP_ONE > cap) {
88 return false;
89 }
90 memcpy(out + *w, s, n);
91 *w += n;
92 out[*w] = '\0';
93 return true;
94}
95
96size_t cbm_doclink_php_qualify(char *out, size_t cap, const char *ns, size_t ns_len,
97 const cbm_doclink_php_use_t *uses, int nuses, const char *ref,

Callers 1

cbm_doclink_php_qualifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected