RE: C programming question
- From: Mike Viau <viaum@xxxxxxxxxxxxxxx>
- Date: Tue, 13 Apr 2010 19:00:33 -0400
Tue, 13 Apr 2010 17:29:51 -0500 <ron.l.johnson@xxxxxxx> 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[snip]
C question. I am trying to add support to the parted utility for CMS-formatted
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-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4BC4F05F.6060809@xxxxxxx
_________________________________________________________________
Hotmail & Messenger are available on your phone. Try now.
http://go.microsoft.com/?linkid=9724461
- Follow-Ups:
- Re: C programming question
- From: Robert Baron
- Re: C programming question
- References:
- C programming question
- From: Stephen Powell
- Re: C programming question
- From: Ron Johnson
- C programming question
- Prev by Date: Does bcm4310 work with Debian Lenny?
- Next by Date: Re: C programming question
- Previous by thread: Re: C programming question
- Next by thread: Re: C programming question
- Index(es):
Relevant Pages
|