In my allocator.c file, the allocate function takes an extra parameter that specifies which type of allocation policy to use: 0 - First Fit, 1 - Best Fit, 2 - Worst Fit. After the type of allocation policy is specified, then you can proceed as normal.
Lindsay Knupp
11/09/21
Lab 7 - designAPI.txt
In order to deal with various policies for contiguous memory allocation, my allocate function requires a size and a allocation type. The size refers to the block of memory that you are trying to request and the allocation type refers to the type of memory allocation policy that you want to implement. 0 specifies First-Fit, 1 specifies Best-Fit, and 2 specifies Worst-Fit.