ungetc: number of bytes of pushback

The C99 standard (and the C89 standard before that) said unequivocally: One character of pushback is guaranteed. If the ungetc function is called too many times on the same stream without an intervening read or file positioning operation on that stream, the operation may fail. So, to be portable, you do not assume more than … Read more