The purpose of the lab is to create a telephone-style game. What I need it to do is print the last line added to the file (telephone.txt) and then prompt the user for the next line. This next line will be added to the file and its size will be saved in the shared memory. There's also a semaphore involved to make sure there is only one user writing at a time.
I have two files, control.c for monitoring the semaphore / shared memory / file, and game.c for the implementation of the game.
Fair warning: I just have a general set of what functions I should use, and I don't really understand how semaphores and shared memory work. I'm... struggling.