[net.bugs.4bsd] ungetc returns 0 ???

puder (02/22/83)

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

pdl (04/17/83)

We fixed this for system III (which had exactly the same bug), and nothing
seems to have broken (yet).