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

Function append_text_atom

src/foundation/log.c:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static void append_text_atom(char *buf, size_t bufsz, size_t *pos, const char *s) {
176 if (!s) {
177 return;
178 }
179 while (*s) {
180 unsigned char ch = (unsigned char)*s++;
181 if (ch <= ' ' || ch == 0x7f) {
182 append_char(buf, bufsz, pos, '_');
183 } else {
184 append_char(buf, bufsz, pos, (char)ch);
185 }
186 }
187}
188
189static void append_json_string(char *buf, size_t bufsz, size_t *pos, const char *s) {
190 append_char(buf, bufsz, pos, '"');

Callers 1

cbm_logFunction · 0.85

Calls 1

append_charFunction · 0.85

Tested by

no test coverage detected