Click here to Skip to main content
14,869,803 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Write your own replacements for the memory allocation/deallocation routines malloc() and free(). Name these two new functions NewMalloc() and NewFree().

NewMalloc() allocates memory for each call from an array of fixed size. This array is an array of 50,000 bytes. All the data structures that you declare to manage this 50,000 bytes memory area must reside within that memory area.

The memory allocated using NewMalloc() can be freed with NewFree().
Posted

1 solution

We don't do homework for you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900