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

Function ti_comment_close

src/mcp/test_impact_source.c:131–138  ·  view source on GitHub ↗

The offset of the first "*" + "/" in s[from..to), or `to`. */

Source from the content-addressed store, hash-verified

129
130/* The offset of the first "*" + "/" in s[from..to), or `to`. */
131static size_t ti_comment_close(const char *s, size_t from, size_t to) {
132 for (size_t i = from; i + 1 < to; i++) {
133 if (s[i] == '*' && s[i + 1] == '/') {
134 return i;
135 }
136 }
137 return to;
138}
139
140/* A line that is nothing but comment: blank; `//`; a block opened here with
141 * nothing after its first close; a block-comment line (`*` then whitespace or

Callers 1

cbm_ti_line_is_commentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected