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

Function gbuf_ptr_cmp

src/graph_buffer/graph_buffer.c:1997–2001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1995}
1996
1997static int gbuf_ptr_cmp(const void *k, const void *v) {
1998 uintptr_t a = (uintptr_t)*(const cbm_gbuf_edge_t *const *)k;
1999 uintptr_t b = (uintptr_t)*(const cbm_gbuf_edge_t *const *)v;
2000 return (a > b) - (a < b);
2001}
2002
2003typedef struct {
2004 const cbm_gbuf_edge_t **edges;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected