[SOLVED] Wierd serial behavior with C

Thanks for the help, that definitely fixed it. It makes a lot more sense to do it that way. I'll post the code soon when I get it nice and sorted out.