Endianness depends on the hardware.

In internal kernel structures endianness does not matter, if
communicating with other machines protocols (usually) define a
bitorder.

The c-library and/or systemlibrary contains utility functions for conversion.

Regards,

Wouter Oosterveld

2008/2/4, navneet Upadhyay <[EMAIL PROTECTED]>:
> 1. Is FreeBSD little Endian like windows?
>
> 2. Linux is Big endian?
>
> wrote a code int i = 1;    if((i >> 1) == 0) little else big
> got little on all platforms bsd,linux,windows.
>
> *Does endianness depends on OS or the hardware?*
> **
> **
> *Thanks,*
> *navneet*
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>


-- 
[
  [EMAIL PROTECTED] is binnenkort niet meer,
[EMAIL PROTECTED] is mijn nieuwe email-adres.
]
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to