in reply to Re^3: sprintf %X endianness
in thread sprintf %X endianness

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