18memrealloc(__variant *oldptr,
int elementsize,
int oldelements,
int newelements)
20 void *n =
memalloc(elementsize * newelements);
21 memcpy(n, oldptr, elementsize * min(oldelements, newelements));
__wrap __variant * memalloc(int size)
Definition: memory.h:27
void * memrealloc(__variant *oldptr, int elementsize, int oldelements, int newelements)
Definition: memory.h:18