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

Function count_newlines

tests/test_mcp.c:24007–24013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24005}
24006
24007static int count_newlines(const char *s) {
24008 int n = 0;
24009 for (; *s; s++) {
24010 n += *s == '\n';
24011 }
24012 return n;
24013}
24014
24015TEST(search_code_context_window_is_bounded) {
24016 char tmp[256];

Callers 1

test_mcp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected