[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Little/Big endian discussion (was: Re: can I burn the output of mpg123 -s?)



On Tue, Aug 18, 1998 at 08:46:20AM -0400, Stephen J. Carpenter wrote:
> currently xfstt bombs out if it gets a connection of a differnt 
> "endianess" than the system it is on...I have been meaning to fix that but
> maybe the PowerPC may have an easier fix...
> nah...ill just look into fixing it "right"

Ouch.. use htons(), htonl(), ntohs(), ntohl() to convert; you don't
have to know what endianness the machine is you're using, you rely
on libc knowing and implementing those functions appropriately.

Hamish
-- 
Hamish Moffatt, hamish@debian.org, hamish@rising.com.au, hmoffatt@mail.com
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


Reply to: