We have this horrible C code given to us as an assignment. We need to add functions to simulate things.
Details can be found here: [url removed, login to view]
Full Source that needs to be added to can be found here: [url removed, login to view]
This is for a homework assignment, but it is overly complex for the time we have available. If you feel immoral, then don't bid.