> Tue, 13 Apr 2010 17:29:51 -0500 <ron.l.john...@cox.net> wrote: > > On 2010-04-13 17:16, Stephen Powell wrote: > > I realize that this is not a C forum, per se, but this is a Debian-specific > > C question. I am trying to add support to the parted utility for > > CMS-formatted > [snip] > > > > I know how to do this in PL/I, but despite having spent the last two hours > > paging through a C language reference manual, I couldn't find any examples > > of overlaying two structures. I did find reference to something called > > a union, but I don't have enough knowledge to know what to do. Does > > anyone know how to do this? > > > > union is exactly what you need. >
Yes thats absolutely right. Remember since C is a powerful, low level, and untyped programming language untagged unions are consider unsafe. Good luck though! > "I'm feeling lucky" sample c code union > > http://www.wellho.net/resources/ex.php4?item=c209/union.c > > -- > Dissent is patriotic, remember? > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/4bc4f05f.6060...@cox.net > _________________________________________________________________ Hotmail & Messenger are available on your phone. Try now. http://go.microsoft.com/?linkid=9724461