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

Function trim_ws

src/discover/discover.c:154–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static char *trim_ws(char *s) {
155 while (*s && isspace((unsigned char)*s)) {
156 s++;
157 }
158 char *end = s + strlen(s);
159 while (end > s && isspace((unsigned char)end[-1])) {
160 end--;
161 }
162 *end = '\0';
163 return s;
164}
165
166static void strip_inline_comment(char *s) {
167 bool in_quote = false;

Callers 2

read_core_excludes_fileFunction · 0.85
resolve_git_common_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected