[Tfug] Byte Order

Tim Ottinger tottinge at gmail.com
Thu Nov 16 07:59:33 MST 2006


there are a bunch of functions for converting between "natural" and "net
order".

Look up ntoi, iton, etc.

Also take a gander at
http://discuss.joelonsoftware.com/default.asp?joel.3.413013.37, which might
be somewhat useful to you.  Or mildly entertaining.

tim

On 11/15/06, Jim Secan <jim at nwra.com> wrote:
>
> I know I can look this up somewhere, but SOMEONE out there probably knows
> this off the top - is there is difference in byte ordering for short
> integers between a Solaris/Sun system and a Linux/PC system?  I'm trying
> to
> read files taken from 9-track tapes built on an old PR1ME minicomputer
> using software written to work on a Sun/Solaris system and it ain't
> working
> on Linux/PC.  Looks like a byte order problem.
>
> Jim
> *---------------------*-------------------------------*
> | Jim Secan           | Northwest Research Assoc, Inc |
> | (jim at nwra.com)      | 2455 E. Speedway, Suite 204   |
> | (520) 319-7773      | Tucson, Arizona 85719         |
> *---------------------*-------------------------------*
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>



More information about the tfug mailing list