Re: Difficulties with endianness
From: David Schwartz (davids_at_webmaster.com)
Date: 09/13/03
- Previous message: Kuang-Chun Cheng: "PCI resources conflict"
- In reply to: Laurent Hugé: "Difficulties with endianness"
- Next in thread: Dave Platt: "Re: Difficulties with endianness"
- Reply: Dave Platt: "Re: Difficulties with endianness"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Sep 2003 19:00:46 -0700
"Laurent Hugé" <l.huge@nospam.wanadoo.fr> wrote in message
news:bjsf46$8pt$1@news-reader1.wanadoo.fr...
> struct my_header { u16 seq:2, count:14; }
> I call this structure with :
> struct my_header *hdr;
> hdr->seq=3;
> hdr->count=0;
> so, to my opinion, the result should be CO OO, but it is 03 00.
What "result" are you talking about? The result should be that hrd->seq
is 3 and hdr->count is 0. What result should be "CO OO"? The result of what?
DS
- Previous message: Kuang-Chun Cheng: "PCI resources conflict"
- In reply to: Laurent Hugé: "Difficulties with endianness"
- Next in thread: Dave Platt: "Re: Difficulties with endianness"
- Reply: Dave Platt: "Re: Difficulties with endianness"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]