Advertisement
Guest User

Untitled

a guest
Aug 11th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <termio.h>
  2. /* Convenience macros for the flush cmd argument */
  3. #define FLUSH_IN   0
  4. #define FLUSH_OUT  1
  5. #define FLUSH_BOTH 2
  6. /*
  7.  * Function for flushing a terminal/serial device
  8.  */
  9. tcFlush(int fileDescriptor, int cmd) {
  10.     ioctl(fileDescriptor, TCFLSH, cmd);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement