Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!ihlpf!bamford From: bamford@ihlpf.ATT.COM (Harold E. Bamford) Newsgroups: comp.lang.c Subject: Re: down Message-ID: <6921@ihlpf.ATT.COM> Date: 12 Dec 88 18:34:02 GMT References: Reply-To: bamford@ihlpf.UUCP (Harold E. Bamford) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 14 In article slores%gables.span@umigw.miami.edu (Stanislaw L. Olejniczak) writes: >PLEASE don't flame for posting too simple a question. I think the following >SHOULD work, but will not even compile: > while ( (c = getchar) != EOF) > chcnt++ += (c == '\n'); Without a list of the error messages from the compiler, I can only guess, but the first thing that strikes me is that "getchar" should probably be written as "getchar()" as it is a macro. In my stdio.h, it is listed as: #define getchar() getc(stdin) Please, no flames about anything. Nobody cares. Harold Bamford