Subj : Re: Any help on why? To : borland.public.cpp.borlandcpp From : waking Date : Wed Jul 07 2004 07:43 pm On Wed, 07 Jul 2004 11:15:17 -0700, Bob Gonder wrote: >The %LX seems to correct endianness. The L is intended for use with e E f F G and is interpreted as a long double (80 bits). X is intended for use with integer types only. %LX will not work consistently across implementations. Using it in the OP's original program and TC++ 3.0 will result in output such as: 3 0, 0 You seem determined to persist in approaching the problem like an assembler programmer: Exploit low level, platform and implementation-specific features, bit-fiddling, etc. IMHO, the proper approach is as a disciplined, informed C/C++ programmer attempting to use the language as designed so that the program works consistently and portably. YMMV -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .