Major do-do in ungetc (stdio /usr/src/libc/stdio/ungetc.c)

Mike Muuss mike at BRL.ARPA
Mon Aug 19 01:35:01 AEST 1985


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



More information about the Comp.unix.wizards mailing list