I am completely new to programming in C and am trying to access and read serial ports. I am trying to listen to COM1. What I am trying to do is to sit in a while loop and have the serial messages echoed to the console. Any help would be greatly appreciated. I am very new to C and do not understand very much of it. I am using the gcc compiler on a Windows XP machine.
Any help and/or code would be greatly appreciated