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

Function debug_htable_size

lib_acl/src/stdlib/debug/debug_htable.c:74–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72/* debug_htable_size - allocate and initialize hash table */
73
74static int debug_htable_size(DEBUG_HTABLE *table, unsigned size)
75{
76 DEBUG_HTABLE_INFO **h;
77
78 size |= 1;
79
80 table->data = h = (DEBUG_HTABLE_INFO **) MALLOC(size * sizeof(DEBUG_HTABLE_INFO *));
81 if(table->data == NULL)
82 return(-1);
83
84 table->size = size;
85 table->used = 0;
86
87 while (size-- > 0)
88 *h++ = 0;
89
90 return(0);
91}
92
93/* debug_htable_grow - extend existing table */
94

Callers 3

debug_htable_growFunction · 0.85
debug_htable_createFunction · 0.85
debug_htable_resetFunction · 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…