Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site brl-tgr.ARPA
Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!ron
From: ron@brl-tgr.ARPA (Ron Natalie )
Newsgroups: net.lang.c
Subject: Re: offsets in structures.
Message-ID: <5172@brl-tgr.ARPA>
Date: Wed, 10-Oct-84 15:05:18 EDT
Article-I.D.: brl-tgr.5172
Posted: Wed Oct 10 15:05:18 1984
Date-Received: Fri, 12-Oct-84 05:10:37 EDT
References: <393@orion.UUCP>
Organization: Ballistics Research Lab
Lines: 13

This is useful except on the VAX it don't work for bit fields (now
before you scream, let me demonstrate...)

	sturct	foo  {
		int	x;
		char	a:4, b:4;
		char	c;
	};

You can't find the offset of the char that contains a and b.
Just another reason for not using bitfields, I guess.

-Ron