On 2012-Aug-15 10:33:46 +0200, Daniel Grech <dgre...@gmail.com> wrote:
>Hi,
>
>I have what is probably a really elementary question but I can't seem to
>figure it out. In the following snippet of code, why is it that a and b do
>not have the same value in the end ?  :

See http://en.wikipedia.org/wiki/Endian

>Im asking this as I am currently encoding a protocol in which i receive
>data as a sequence of bytes. Casting for example 4 bytes from this stream
>leaves me with the situation in variable b, while the situation I am
>looking to accomplish is the one in A (i.e. the bytes are not encoded in
>reverse form).

I suggest you look at xdr(3) and rpcgen(1)

-- 
Peter Jeremy

Attachment: pgpSy5s1R6Dmk.pgp
Description: PGP signature

Reply via email to