title: how to clear serial buffer?
body: <p><br>
  I am receiving messages over serial port from a micro-controller. i am using a baud rate of 9600. I have a program written using win32 API that receives the messages. Sometimes it happens that i am not able to receive the messages and then suddenly a burst comes in when i press Ctrl+C.<br>
  How do I clear the serial buffer so that i can avoid this flooding of data?</p>
  
  <p>Thank you</p>