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

Function cv_fields

src/mcp/test_impact_coverage.c:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static bool cv_fields(char *line, char **fields, int count) {
84 if (!line) {
85 return false;
86 }
87 for (int i = 0; i < count; i++) {
88 fields[i] = line;
89 char *tab = strchr(line, '\t');
90 if (i + 1 == count) {
91 return tab == NULL;
92 }
93 if (!tab) {
94 return false;
95 }
96 *tab = '\0';
97 line = tab + 1;
98 }
99 return false;
100}
101
102static bool cv_decimal(const char *text, int *value, const char **end) {
103 if (*text < '0' || *text > '9') {

Callers 2

cv_functionsFunction · 0.85
cv_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected