From: utzoo!decvax!harpo!seismo!presby!burdvax!puder
Newsgroups: net.bugs.4bsd
Title: ungetc returns 0 ???
Article-I.D.: burdvax.589
Posted: Tue Feb 22 12:53:41 1983
Received: Wed Feb 23 06:28:44 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