1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

What is the purpose of realloc( )?

Discussion in 'C' started by sunina, Feb 15, 2007.

  1. sunina

    sunina New Member

    # What is the purpose of realloc( )?
     
  2. samsmile007

    samsmile007 New Member

    # if we run out of allocated memory during the run-time of our program and need to give our collection of items more memory
    # Enter realloc(3), it's prototype:

    void *realloc(void *ptr, size_t size);

    realloc takes in the pointer to the original area of memory to enlarge and how much the total size should be
     

Share This Page