Newsgroups: comp.unix.programmer
Path: utzoo!utgpu!watserv1!watdragon!crocus.waterloo.edu!nkkwan
From: nkkwan@crocus.uwaterloo.ca ()
Subject: get character without waiting
Message-ID: <1991Jun12.001056.24021@watdragon.waterloo.edu>
Originator: nkkwan@crocus.waterloo.edu
Sender: news@watdragon.waterloo.edu (News Owner)
Organization: University of Waterloo
Date: Wed, 12 Jun 1991 00:10:56 GMT
Lines: 5


How can I check whether there is character waiting in standard input or not? 
What I want to do is something like..
   
If there is a character, then I read it. But if not, I can do something else.
