6 #include "afs_config.h"
10 * REALLOC ____________________________________________________________________
14 BOOL AfsConfigReallocFunction (LPVOID *ppTarget, size_t cbElement, size_t *pcTarget, size_t cReq, size_t cInc)
19 if (cReq <= *pcTarget)
22 if ((cNew = cInc * ((cReq + cInc-1) / cInc)) <= 0)
25 if ((pNew = (LPVOID)Allocate (cbElement * cNew)) == NULL)
27 memset (pNew, 0x00, cbElement * cNew);
31 memcpy (pNew, *ppTarget, cbElement * (*pcTarget));