MyMalloc
Implement a malloc like memory allocation library using the C programming language.
Implement a malloc like memory allocation library.
- Declare an array of 25000 bytes.
- You must implement a function that is like malloc(). Call it MyMalloc(). Its signature is similar to malloc(). You should also implement MyFree() which has a signature and functionality that are similar to free().
- MyMalloc() allocates memory only from the previously mentioned array of 25000 bytes.
- All the data structures that are required to manage the memory must also reside within the same array.
- MyMalloc() and MyFree() must be in a file called mymalloc.c. You should also provide a suitable header file mymalloc.h.
- Our test program contains the main() and it includes mymalloc.h. Do not include a main() in your mymalloc.c.
- Upload only the mymalloc.c and mymalloc.h to LMS by the due date.