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

Function cbm_ascii_case_equal

src/foundation/subprocess.c:310–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static bool cbm_ascii_case_equal(const char *left, const char *right) {
311 if (!left || !right) {
312 return false;
313 }
314 while (*left && *right) {
315 unsigned char left_ch = (unsigned char)*left++;
316 unsigned char right_ch = (unsigned char)*right++;
317 if (left_ch >= 'A' && left_ch <= 'Z') {
318 left_ch = (unsigned char)(left_ch + ('a' - 'A'));
319 }
320 if (right_ch >= 'A' && right_ch <= 'Z') {
321 right_ch = (unsigned char)(right_ch + ('a' - 'A'));
322 }
323 if (left_ch != right_ch) {
324 return false;
325 }
326 }
327 return *left == '\0' && *right == '\0';
328}
329
330static bool cbm_win_cmd_path_is_absolute(const char *path) {
331 if (!path) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected