So I have to read in a byte stream from a file, thats easy enough. The problem I'm having is moving the bytes around to create an int. So it goes like this:
Every four bytes in the file correspond to one integer, but we ignore the first one and move the other 3 around. if the four bytes are: 0x12 0x34 0x56 0x78, then the integer is 0x785634.
How do I copy the bytes around and create an int from that?
Many thanks from a non-C guy forced to do some C work.