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

Function safe_str

internal/cbm/sqlite_writer.c:1380–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378}
1379
1380static inline const char *safe_str(const char *s) {
1381 return s ? s : "";
1382}
1383
1384// Allocate permutation array [0, 1, ..., n-1], sort with comparator.
1385// 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