Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_clearin()</b> - clear input buffer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_clearin() - clear input buffer

   tp_clearin(nPort)

   nPort       Serial port number.

   Clears the input buffer, discarding all characters which have not
   been read.

   Example:

       if alert("About to destroy data!;Is this OK?",{"Yes","No"})==1
           tp_clearin(1)       // Clear port 1 input buffer.
       endif

See Also: tp_clearout() tp_inchrs()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson