I did say it was 'terrible, ignorant' code.

Ya, I guess stupid syntax errors are my first problem... amongst many.

If I could make it compile I would. I'm very new to C, and I apologise for my ignorance.