|
|
Little endian: 28. Host endian: 28 Little endian: 3683. Host endian: 3683 Little endian: 7337. Host endian: 4294967209 Little endian: 10991. Host endian: 4294967279 Little endian: 14645. Host endian: 14645 Little endian: 18299. Host endian: 18299 |
bool big_endian = ((*(char*)&i) == 0)
and I have written a htole_32 function using this that works, I'm just curious about why this code does not work.