ptr = (pointer)realloc((char *)ptr, amount);
ptr = realloc(ptr, amount);
Xrealloc(pointer ptr, unsigned long amount){#ifdef MEMBUG    if (!Must_have_memory && Memory_fail &&	((random() % MEM_FAIL_SCALE) < Memory_fail))	return NULL;#endif    if ((long)amount <= 0)    {	if (ptr && !amount)	    free(ptr);	return NULL;    }    amount = (amount + (sizeof(long) - 1)) & ~(sizeof(long) - 1);    if (ptr)        ptr = (pointer)realloc((char *)ptr, amount);    else	ptr = (pointer)malloc(amount);    if (ptr)        return ptr;    if (Must_have_memory)	FatalError("Out of memory");    return NULL;}