Write special EOF at the end of file
If the file has been padded with extra 0's (since file is written in total bytes), there is no way to determine what should be the last value. Implement special 0xFF for this case. This also changes char to unsigned to avoid comparison failure.
Showing
with
26 additions
and
5 deletions
Please
register
or
sign in
to comment