oftn-oswg / coca

An implementation of C in JavaScript.
Other
10 stars 3 forks source link

Possible conflict with ch() and \NUL byte #5

Closed devyn closed 13 years ago

devyn commented 13 years ago

ch() will return 0 on EOF, which it will also return on a NUL byte. This should be changed to -1.