Path: utzoo!utgpu!water!watmath!clyde!att!ucbvax!decwrl!labrea!denali!karish From: karish@denali.stanford.edu (Chuck Karish) Newsgroups: comp.lang.c Subject: Re: Echoing chars and input functions Message-ID: <23331@labrea.Stanford.EDU> Date: 20 Aug 88 01:25:50 GMT References: <8808160751.aa03016@SMOKE.BRL.MIL> <8349@smoke.ARPA> <2821@boulder.Colorado.EDU> <8354@smoke.ARPA> <64974@sun.uucp> Sender: news@labrea.Stanford.EDU Reply-To: karish@denali.stanford.edu (Chuck Karish) Organization: Mindcraft, Inc. Lines: 16 In article <64974@sun.uucp> swilson@sun.UUCP (Scott Wilson) writes: [ Lightspeed C on the Macintosh doesn't echo what's read by getchar() ] >BTW, I do realize that LSC does allow input that is echoed by way of the >gethce() function, but that isn't exactly portable. OK, so stick a call to getce() into a Mac-dependent fubction or macro, and call that function whenever you want this echoing behavior. Whenever you port to another environment, write another environment-specific interface routine. The main body of your code will then be portable. Chuck Karish ARPA: karish@denali.stanford.edu BITNET: karish%denali@forsythe.stanford.edu UUCP: {decvax,hplabs!hpda}!mindcrf!karish USPS: 1825 California St. #5 Mountain View, CA 94041