Closed devyn closed 13 years ago
ch() will return 0 on EOF, which it will also return on a NUL byte. This should be changed to -1.
ch()
-1
ch()
will return 0 on EOF, which it will also return on a NUL byte. This should be changed to-1
.