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

Function find_s

internal/cbm/iris_export_xml.c:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 return (size_t)(end - p) >= n && memcmp(p, tag, n) == 0;
33}
34static const char *find_s(const char *p, const char *end, const char *needle) {
35 size_t n = strlen(needle);
36 while (p + n <= end) {
37 if (memcmp(p, needle, n) == 0)
38 return p;
39 p++;
40 }
41 return NULL;
42}
43static const char *skip_tag(const char *p, const char *end) {
44 while (p < end && *p != '>')
45 p++;

Callers 4

elem_contentFunction · 0.85
emit_propertyFunction · 0.85
transcode_classFunction · 0.85
cbm_iris_export_to_udlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected