MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / nth_dict

Function nth_dict

cachedb/test/test_cachedb.c:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static inline cdb_dict_t *nth_dict(const cdb_res_t *res, int nth)
115{
116 struct list_head *_;
117 cdb_row_t *row;
118
119 list_for_each (_, &res->rows) {
120 if (--nth == 0) {
121 row = list_entry(_, cdb_row_t, list);
122 return &row->dict;
123 }
124 }
125
126 return NULL;
127}
128
129static int test_query_filters(cachedb_funcs *api, cachedb_con *con,
130 const char *cachedb_name)

Callers 2

test_queryFunction · 0.85
test_query_unsetFunction · 0.85

Calls 1

list_entryClass · 0.50

Tested by

no test coverage detected