fopen, fwrite, and endian issues
Ok, I'm trying to write a file out, but the data needs to be in big endian format. Intel of course is in little endian. I search around for stuff, and with the standard C library, it seems nothing is around to output easiliy from one to the other, or to even specify which endianess you are using.
This seems like such a common issue, there is a solution and I'm not finding it. I know I can write some wrapper functions that do the byte swapping, but if it's already built in somewhere, that'd be nice to just use that. Anyone have any knowledge about this?