getc: make sure EOF is "sticky"
authorH. Peter Anvin <hpa@zytor.com>
Wed, 23 May 2007 05:46:25 +0000 (22:46 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 23 May 2007 05:46:25 +0000 (22:46 -0700)
commitc03dbb3576e14a21514e3b764c92accd4595dfe5
tree00502fac0fb7a3764ae9f2e4b33c70af8e38bc3d
parentdc32747db713577a865538e32b57ff2c71f4fcb4
getc: make sure EOF is "sticky"

Make sure to keep all the counters at zero if we hit EOF, so that
subsequent calls will also hit EOF (we rely on that in some places.)
getc.inc