Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!mike@BRL.ARPA From: mike@BRL.ARPA (Mike Muuss) Newsgroups: net.unix-wizards Subject: Re: Major do-do in ungetc (stdio /usr/src/libc/stdio/ungetc.c) Message-ID: <775@brl-tgr.ARPA> Date: Sun, 18-Aug-85 11:35:01 EDT Article-I.D.: brl-tgr.775 Posted: Sun Aug 18 11:35:01 1985 Date-Received: Tue, 20-Aug-85 21:34:21 EDT Sender: news@brl-tgr.ARPA Lines: 6 The problem you will find is that ungetc() can (and IS) used to "push back" characters other than the one that was just read. Rather than changing ungetc() and watching thing break later, you might devise new innards to sscanf(), or a special ROsscanf(), or something. -Mike Muuss