From: "DuckE" <nospam_steved94@home.com>
Subject: Re: pointer in C & in Ada
Date: Wed, 08 Aug 2001 03:14:35 GMT
Date: 2001-08-08T03:14:35+00:00 [thread overview]
Message-ID: <v82c7.32713$Ke4.19178357@news1.sttln1.wa.home.com> (raw)
In-Reply-To: 86772402.0108071439.1c3e1e40@posting.google.com
In C "void *p" means that 'p' contains a pointer to an address where the
type of data at that address is unspecified. This corresponds to an Ada
variable of type System.Address.
In C you cannot access data using the pointer unless you cast it to a
particular type. This corresponds to using
System.Address_To_Access_Conversions in Ada.
SteveD
BTW: While my answer may not be techically correct, I believe it will lead
you to something that works.
"Lin" <lin@post.com> wrote in message
news:86772402.0108071439.1c3e1e40@posting.google.com...
> If "int *p" declares that pointer p points to integer type, then
> what's the meaning of "void *p"? How can I represent it(void *p) in
> Ada language?
>
> Many thanks,
> Lin
next prev parent reply other threads:[~2001-08-08 3:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-07 22:39 pointer in C & in Ada Lin
2001-08-07 23:05 ` Didier Utheza
2001-08-08 9:29 ` Florian Weimer
2001-08-08 14:52 ` Ted Dennison
2001-08-08 16:52 ` Florian Weimer
2001-08-09 16:54 ` Didier Utheza
2001-08-13 15:47 ` lange92
2001-08-07 23:31 ` tmoran
2001-08-08 3:14 ` DuckE [this message]
2001-08-08 9:32 ` Des Walker
2001-08-08 10:40 ` Florian Weimer
2001-08-08 18:03 ` tmoran
2001-08-08 14:59 ` Ted Dennison
2001-08-08 16:53 ` Florian Weimer
2001-08-08 18:03 ` tmoran
2001-08-08 23:29 ` Des Walker
2001-08-09 20:21 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox