AtomicChip
Programmer
Alright... I'm a little confused (..not to mention tired, which may be a driving factor behind my not being able to easily figure this out right now..), but how would you go about doing this (using only c-runtime stuff... no stl or anything please!):
I'm reading the following from a file:
This is stored in little endian format. How would I go about 1) Reading the data in (I'm storing it in a char* right now), and 2) Convert it to an unsigned long in big endian format?
Thanks in advance,
AtomicChip
-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
I'm reading the following from a file:
Code:
FA A3 14 01
This is stored in little endian format. How would I go about 1) Reading the data in (I'm storing it in a char* right now), and 2) Convert it to an unsigned long in big endian format?
Thanks in advance,
AtomicChip
-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy