Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!Schauble@MIT-MULTICS.ARPA From: Schauble@MIT-MULTICS.ARPA (Paul Schauble) Newsgroups: net.lang.c Subject: Portability question Message-ID: <2834@brl-tgr.ARPA> Date: Mon, 4-Nov-85 23:37:42 EST Article-I.D.: brl-tgr.2834 Posted: Mon Nov 4 23:37:42 1985 Date-Received: Thu, 7-Nov-85 04:32:41 EST Sender: news@brl-tgr.ARPA Lines: 33 Could people please comment on the portability of this structure? If it's not, why not and how does one set up a structure where one needs to access the items both by pointer/subscript in a loop and by individual name in inline code? struct x {something}; struct x *ip; struct { struct x a; struct x b; struct x c; struct x d; struct x e; } index; y = index.a.whatever; z = index.c.whatever; ip = (struct x *)&index; ... w = ip[i].whatever; --------------------------------- Flames accepted...the temperature here hasn`t gone over 90 in aweek now... Paul Schauble Schauble at MIT-Multics.ARPA ...but really in Phoenix, AZ