in reply to Re^2: 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.

Replies are listed 'Best First'.
Re^4: sprintf %X endianness
by Anonymous Monk on May 14, 2013 at 21:15 UTC

    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