Path: utzoo!attcan!uunet!husc6!think!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ncar!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Newsgroups: comp.lang.c Subject: Re: Echoing chars and input functions Message-ID: <2821@boulder.Colorado.EDU> Date: 18 Aug 88 03:55:11 GMT References: <8808160751.aa03016@SMOKE.BRL.MIL> <8349@smoke.ARPA> Sender: news@boulder.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Organization: Beautiful Boulder By The Bay Lines: 16 In article <8349@smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) writes: >In article <8808160751.aa03016@SMOKE.BRL.MIL> dsill@NSWC-OAS.ARPA (Dave Sill) writes: >>What, then, is the portable way to input a character from standard input, >>echoing the character to the screen when necessary? > >We already answered that! It's > c = getchar(); I could have sworn someone said their compiler did not echo the character when they used this. Did I misunderstand someone, or is their compiler just non-conformant (broken)? Frank Swarbrick (and, yes, the net.cat) swarbric@tramp.Colorado.EDU ...!{ncar|nbires}!boulder!tramp!swarbric "Quick to judge, quick to anger -- slow to understand; Ignorance and prejudice -- and fear walk hand in hand." --Rush