===================================================== Exercise 8.2 - Rewrite fopen and _fillbuf with fields ===================================================== Question ======== Rewrite fopen and _fillbuf with fields instead of explicit bit operations. Compare code size and execution speed. .. literalinclude:: cprogs/ex_8.2.c :language: c Explanation =========== This is a low level implementation of fopen and _fillbuf with enums and fields.