MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bitmap_realloc1

Function bitmap_realloc1

ccan/ccan/bitmap/bitmap.h:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static inline bitmap *bitmap_realloc1(bitmap *b,
235 unsigned long obits, unsigned long nbits)
236{
237 b = realloc(b, bitmap_sizeof(nbits));
238
239 if ((nbits > obits) && b)
240 bitmap_fill_range(b, obits, nbits);
241
242 return b;
243}
244
245#endif /* CCAN_BITMAP_H_ */

Callers 1

test_reallocFunction · 0.85

Calls 2

bitmap_sizeofFunction · 0.85
bitmap_fill_rangeFunction · 0.85

Tested by 1

test_reallocFunction · 0.68