Hey folks,
I've finally gotten my program working. Yay! Now the only thing I'm having problems with is when people do what they aren't supposed to.
Specifically, if a user types in any letters at the line breaks, or when they're supposed to submit a number, it gives me a loop of doom. From what I can tell it's sending back the error messages for if the number submitted isn't valid, except it doesn't stop. It's probably having a problem with figuring out whether the ANSI code for the letters is valid, or something along those lines. At least I think that makes sense.
Anyway, any feedback to catch this problem, and of course anything to clean up the coding wherever possible is greatly appreciated.
The code's quite long, so it's attached as a .c file.
Thanks again for the help.