Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!mvb.saic.com!eafbvax!eafbtems!elston From: elston%boot.decnet@edwards-tems.af.mil (Mark Elston, NSI Inc., Edwards AFB CA) Newsgroups: comp.unix.programmer Subject: Re: get character without waiting Message-ID: <1991Jun12.085022.73@%boot.decnet@edwards-tems.af.mil> Date: 12 Jun 91 15:50:22 GMT References: <1991Jun12.001056.24021@watdragon.waterloo.edu> <4669@inews.intel.com> Organization: T&E Mission Simulator - Edwards AFB, CA Lines: 26 In article <4669@inews.intel.com>, bhoughto@pima.intel.com (Blair P. Houghton) writes: > In article <1991Jun12.001056.24021@watdragon.waterloo.edu> nkkwan@crocus.uwaterloo.ca writes: >> >>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. > > Y'know, I've often wondered what it was that possessed the > forgers of unix to name that damn function "select(2)" instead > of "checkiobuffersforremainingcharacters(2)". That's great for all of you with "select(2)" in your libraries. I'm forced to live with SysVR2 without select()!! Is there another way???? Mark. -- --------------------------------------------------------------------------- elston@edwards-tems.af.mil | "I know there are people in the world who | Mark Elston, NSI Inc. | do not love their fellow human beings and| "What business in their right | I *HATE* people like that..." | mind would want my opinion | -Tom Lehrer | anyway" | on National Brotherhood Week | ---------------------------------------------------------------------------