Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   What is the purpose of realloc( )? (http://www.go4expert.com/forums/purpose-realloc-t3021/)

sunina 15Feb2007 12:11

What is the purpose of realloc( )?
 
# What is the purpose of realloc( )?

samsmile007 16Feb2007 10:13

Re: What is the purpose of realloc( )?
 
Quote:

Originally Posted by sunina
# What is the purpose of realloc( )?

# 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


All times are GMT +5.5. The time now is 09:36.