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

Function safe_str

internal/cbm/sqlite_writer.c:1435–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435static inline const char *safe_str(const char *s) {
1436 return s ? s : "";
1437}
1438
1439// Allocate permutation array [0, 1, ..., n-1], sort with comparator.
1440// Returns NULL on allocation failure.

Callers 11

cmp_node_by_labelFunction · 0.70
cmp_node_by_nameFunction · 0.70
cmp_node_by_fileFunction · 0.70
cmp_node_by_qnFunction · 0.70
cmp_edge_by_source_typeFunction · 0.70
cmp_edge_by_target_typeFunction · 0.70
cmp_edge_by_typeFunction · 0.70
cmp_edge_by_src_tgt_typeFunction · 0.70
ecell_src_tgt_typeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected