One little endian question

Bill Campbell bill at celestial.com
Sun Mar 2 12:16:40 PST 2008


On Sun, Mar 02, 2008, Jeff Harrison wrote:
...
>Thanks.  That was very enlightening.  However, I don't
>see how that helps me directly.  I need to know from
>within a filepro application what the native byte
>order is.  How can I tell that?

Given that this isn't something that changes on a system, how
about putting it in a file someplace where it's accessible.

On a system with python, this is a one liner that will return the
value for the system.  It returns ``little'' or ``big''.

python -c 'import sys; print sys.byteorder'

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

... because most politicians and bureaucrats are technological idiots,
it's going to be crucial for the rank and file members of the IT community
to find its collective voice soon.
    --Michael Vizard, InfoWorld Editor in Chief.


More information about the Filepro-list mailing list