Determine the number of characters waiting to be read
#include <termios.h> int tcischars( int filedes );
libc
The tcischars() function checks to see how many characters are waiting to be read from the given file descriptor, filedes.
The number of characters waiting to be read, or -1 if an error occurred.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |