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

Function nullable_strcmp

src/mcp/mcp.c:2928–2930  ·  view source on GitHub ↗

strcmp that orders NULL like "". */

Source from the content-addressed store, hash-verified

2926
2927/* strcmp that orders NULL like "". */
2928static int nullable_strcmp(const char *a, const char *b) {
2929 return strcmp(a ? a : "", b ? b : "");
2930}
2931
2932static int project_record_compare(const void *left, const void *right) {
2933 const mcp_project_record_t *a = left;

Callers 2

project_record_compareFunction · 0.85
search_result_cmpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected