Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!gordon From: John Gordon Newsgroups: comp.lang.c Subject: Re: I think this is an impossible assignment...could you help? Date: Thu, 1 Sep 2011 15:20:46 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 16 Message-ID: References: <9c9l7iF6f6U2@mid.individual.net> NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1314890446 19162 166.84.1.3 (1 Sep 2011 15:20:46 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 1 Sep 2011 15:20:46 +0000 (UTC) User-Agent: nn/6.7.3 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:9818 In <9c9l7iF6f6U2@mid.individual.net> blmblm@myrealbox.com writes: > > Sure. But if you're reading keyboard input and you don't differentiate > > between newline and other kinds of whitespace, how would you ever know > > that the user pressed Enter thus signaling end-of-input? > Say what? If you're reading from the standard input stream, you won't > get *any* input until the user presses "Enter", will you? Good point! Not sure what I was thinking. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"