Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!hao!hplabs!sri-unix!mm1751@Almsa-1.ARPA From: mm1751@Almsa-1.ARPA Newsgroups: net.unix-wizards Subject: getchar() question in 4.2 Message-ID: <12654@sri-arpa.UUCP> Date: Mon, 23-Apr-84 09:30:11 EDT Article-I.D.: sri-arpa.12654 Posted: Mon Apr 23 09:30:11 1984 Date-Received: Mon, 30-Apr-84 05:19:18 EDT Lines: 17 From: Mary Mallott We recently converted to 4.2 from 4.1 and I had some fairly simple programs that worked fine before and the compiled versions continued to work fine under 4.2. But when I recompiled the same source under 4.2, getchar() seems to hang on to EOF characters. If I do getchars and end with ^D, the next time (or multiple times) I do either getchar or scanf, it doesn't wait for input. It just continues on and the variables read into are null. What am I missing? These programs were all originally written for system III but I can't think why that would matter. If this sounds too simple for wizards, reply directly to me. Thanks. Mary Mallott mm1751@almsa-1.ARPA