3 ms·
> Is it not surprising that you can't reliably store chars to a file using fgetc/fputc? It was surprising until I needed I/O between two systems with different
by rsaxvc 4y ago
> Is it not surprising that you can't reliably store chars to a file using fgetc/fputc?
It was surprising until I needed I/O between two systems with different CHAR_BITs to work.
Many systems need to access octet based field and communicate over octet based busses, and CHAR_BIT>8 machines are rare.
If the entire char is serialized, interoperability becomes a much larger mess.