To test for availability of input stream.
streamsize in_avail();
If a read is permitted returns size of stream as a type streamsize.