Re: pointer to void property
- From: Irrwahn Grausewitz <irrwahn35@xxxxxxxxxx>
- Date: Tue, 13 Sep 2005 08:49:00 +0200
"Mabden" <mabden@xxxxxxxxxxxxxx> wrote:
>"Old Wolf" <oldwolf@xxxxxxxxxxxxxx> wrote in message
>news:1126566243.859723.271250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<snip>
>> The OP's original question was (rephrased):
>>
>> Can this p-to-char be used to access the representation of the
>> "sometype" that p-to-sometype was pointing to?
<snip>
>Well, even if you do so, you would have to account for (ie: guess) byte
>alignments that might change between compiler versions, or CPU changes
>(32bit vs 64bit currently), or OS changes (versions), or OS changes
>(endian issues), or OS changes (devices like PDAs), or OS changes (you
>get the idea).
If a C programmer messes around with the internal representation of
objects, he knows he's left the realm of portable C. Well, at least
he /should/ know. ;-)
Best regards
--
Irrwahn Grausewitz (irrwahn35@xxxxxxxxxx)
welcome to clc : http://www.ungerhu.com/jxh/clc.welcome.txt
clc faq-list : http://www.faqs.org/faqs/C-faq/faq/
clc frequent answers: http://benpfaff.org/writings/clc
.
- References:
- pointer to void property
- From: aegis
- Re: pointer to void property
- From: Irrwahn Grausewitz
- Re: pointer to void property
- From: aegis
- Re: pointer to void property
- From: Irrwahn Grausewitz
- Re: pointer to void property
- From: Old Wolf
- Re: pointer to void property
- From: Mabden
- pointer to void property
- Prev by Date: Re: 0 vs '\0'
- Next by Date: Re: pointer to void property
- Previous by thread: Re: pointer to void property
- Next by thread: Re: pointer to void property
- Index(es):
Relevant Pages
|