Added c_calloc and c_realloc and updated docs accordingly.
Merge pull request #5518 from iamed2/master

Added c_calloc and c_realloc and updated docs accordingly.