in reply to pack, unpack and internal represenation of numbers
From the pack documentation:
The integer formats s, S, i, I, l, L, j, and J are inherently non-portable between processors and operating systems because they obey the native byteorder and endianness.
Which should be taken to imply that the other formats do not follow the endian-ness of the platform. So your orginal L solution was correct in this case, because dealing with the endian-ness is the whole point.
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pack, unpack and internal represenation of numbers
by 5mi11er (Deacon) on Jul 01, 2004 at 20:48 UTC |