MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_htable_list

Function acl_htable_list

lib_acl/src/stdlib/common/acl_htable.c:1165–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163/* acl_htable_list - list all table members */
1164
1165ACL_HTABLE_INFO **acl_htable_list(const ACL_HTABLE *table)
1166{
1167 ACL_HTABLE_INFO **list;
1168 ACL_HTABLE_INFO *member;
1169 int count = 0;
1170 int i;
1171
1172 if (table != 0) {
1173 list = (ACL_HTABLE_INFO **) acl_mymalloc(sizeof(*list) * (table->used + 1));
1174 for (i = 0; i < table->size; i++) {
1175 for (member = table->data[i]; member != 0; member = member->next) {
1176 list[count++] = member;
1177 }
1178 }
1179 } else {
1180 list = (ACL_HTABLE_INFO **) acl_mymalloc(sizeof(*list));
1181 }
1182
1183 list[count] = 0;
1184 return list;
1185}
1186
1187void acl_htable_stat(const ACL_HTABLE *table)
1188{

Callers 9

dict_walkFunction · 0.85
dict_changed_nameFunction · 0.85
dict_mapnamesFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
attr_vprint0Function · 0.85
attr_vprint_plainFunction · 0.85
attr_vprint64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…