This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: od
On Fri, 15 Feb 2002 14:06:27 GMT you wrote:
>I created at test file with 4 characters in it:
>
> HTTP
>
>Then, I run od -bcx and I get:
>
>110 124 124 120 012 000
> H T T P \n \0
>5448 5054 000a
That is correct in this little-endian platform, see
http://info.astrian.net/jargon/terms/l/little-endian.html
>You can see that the hex values in the last line are reversed.
>I think they should be 4854 5450 000a.
Only if you were on a big-endian platform.
--
Mark Himsley
In Acton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/