>>4430398 (OP)SNCA: c in clear (marge, it should be load ev&oe it clears the previous state) should be declared as int because if the compiler default is that char is unsigned then EOF overflows to 255 and the EOF case is never processed or whatever