Searched refs:oldBag (Results 1 – 1 of 1) sorted by relevance
57 bagDup(struct bag *oldBag) in bagDup() argument59 struct bag *newBag = bagCreateBag(oldBag->itemSize, in bagDup()60 oldBag->allocated); in bagDup()62 newBag->used = oldBag->used; in bagDup()63 (void)memcpy(newBag->items, oldBag->items, newBag->used * newBag->itemSize); in bagDup()