Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>cinp-cnt</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  CINP-CNT

  .  Summary

  cinp_cnt();

  .  Description

  The cinp_cnt function returns the number of characters waiting in
  the received data communications buffer.

  .  Return Value

  An integer value as described above.

  .  Examples

  if (cinp_cnt() > 10)   // if more than 10 chars waiting
   handle_stuff();       //   do action

  while (!cinp_cnt())    // loop until no chars available
   ;

  if (cinp_cnt())        // if something available, get it
   c = cgetc();

See Also: cgetc cgetct

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