Re: checking for endian-ness?

From: Mark Devlin (
Date: 01/05/96

On Fri, 5 Jan 1996, Carl Tashian wrote:

> has anyone implemented code in circle to keep up with the endian-ness of the
> machine it's running on? It'd be neat, for example, to have a binary
> playerfile automatically convert itself when it goes between big- and
> little-endian machines.. :)

Just use the host-to-net and net-to-host functions.  Convert them to net 
format to save, convert to host format after loading.
- Mark

This archive was generated by hypermail 2b30 : 12/07/00 PST