Is your machine not big or little endian? That's pretty rare hardware. You can ask for the values in network order, or worst case, you can unpack it by bytes, and shuffle them manually.
heh, you mean like I did there with three unpack calls? My question is about how sprintf is supposed to work
In reply to Re^4: sprintf %X endianness
by Anonymous Monk
in thread sprintf %X endianness
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |