Eric Blake <ebl...@redhat.com> writes: > Wrong. Pretty much every libc out there lets you ungetc() more than one > byte.
Does that include glibc? Then there is a bug in the manual, which says: The GNU C library only supports one character of pushbackâin other words, it does not work to call ungetc twice without doing input in between. in the description of ungetc().