In C the standard memory handling functions are malloc(), realloc() and free(). However, C++ stdlib allocators only parallel two of t
malloc()
realloc()
free()
I guess this is one of the things where god went wrong, but I was just too lazy to write to the standards committee.
There should have been a realloc for array allocations:
p = renew(p) [128];
or something like that.