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

Function flush_token

src/semantic/semantic.c:158–164  ·  view source on GitHub ↗

Flush the current buffer as a token into out[]. */

Source from the content-addressed store, hash-verified

156
157/* Flush the current buffer as a token into out[]. */
158static void flush_token(char *buf, int *blen, char **out, int *count, int max_out) {
159 if (*blen > 0 && *count < max_out) {
160 buf[*blen] = '\0';
161 out[(*count)++] = strdup(buf);
162 }
163 *blen = 0;
164}
165
166int cbm_sem_tokenize(const char *name, char **out, int max_out) {
167 if (!name || !out || max_out <= 0) {

Callers 1

cbm_sem_tokenizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected