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

Function cif_device_root

src/discover/inventory_metadata.c:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static bool cif_device_root(const unsigned char *root, size_t n) {
29 if (n < 4) {
30 return false;
31 }
32 return (cif_separator(root[0]) && cif_separator(root[1]) &&
33 (root[2] == '?' || root[2] == '.') && cif_separator(root[3])) ||
34 (root[0] == '\\' && root[1] == '?' && root[2] == '?' && root[3] == '\\');
35}
36#endif
37
38static bool cif_root(cif_context *c, size_t *length) {

Callers 1

cif_rootFunction · 0.85

Calls 1

cif_separatorFunction · 0.85

Tested by

no test coverage detected