Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site tellab2.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!tellab1!tellab2!dag From: dag@tellab2.UUCP (Donald Graft) Newsgroups: net.micro.pc Subject: Re: strange stdin behavior Message-ID: <133@tellab2.UUCP> Date: Thu, 14-Jun-84 10:11:00 EDT Article-I.D.: tellab2.133 Posted: Thu Jun 14 10:11:00 1984 Date-Received: Fri, 15-Jun-84 01:21:43 EDT References: <2258@ut-sally.UUCP> Organization: Tellabs, Inc., Lisle, Ill. Lines: 9 The program is not performing incorrectly. Most micro-based C compilers that I am familiar with treat getc(stdin) as equivalent to getchar(). That means that characters will be echoed to the console as typed so the user can see what (s)he's doing. Since the characters are also printed by the putc(c) call, the double printing is accounted for. You need to find a call that gets characters without echoing. Most libraries provide such a call; if not, you will need to make a direct OS call. ...ihnp4!tellab1!tellab2!dag Donald Graft