ungetc returns 0 ???

utzoo!decvax!harpo!seismo!presby!burdvax!puder utzoo!decvax!harpo!seismo!presby!burdvax!puder
Tue Feb 22 12:53:41 AEST 1983


The manual page for ungetc says that it returns EOF if it can't do it,
otherwise it returns the character that was pushed back.  Well, it has been
discovered that it returns EOF (-1) or 0.  Come on guys, get it together!

Now I have another problem:  Should I change /usr/src/libc/stdio/ungetc.c to
do what the manual says (and other UNIX[tm] systems do), or will this cause
all sorts of programs to suddenly fail the next time they are recompiled?!?

Karl Puder   burdvax!puder   SDC-aBC, R & D   Paoli, Pa.   (215)648-7555



More information about the Comp.bugs.4bsd.ucb-fixes mailing list