Re: pointer to void property
- From: Irrwahn Grausewitz <irrwahn35@xxxxxxxxxx>
- Date: Mon, 12 Sep 2005 11:36:38 +0200
"aegis" <aegis@xxxxxxxxxxxxxxxxx> wrote:
>
>Irrwahn Grausewitz wrote:
<snip>
>> But casting from any
^^^^^^^^^^^^^^^^^^^^^^^
>> pointer-to-sometype to pointer-to-void is safe, as is casting from any
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> pointer-to-void to a pointer-to-charactertype.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
s/casting/conversion/
>I wasn't asking about pointer-to-int to pointer-to-double
>nor about pointer-to-sometype to pointer-to-void but specifically about
>pointer-to-sometype to pointer-to-void to
>pointer-to-[signed|unsigned]char
If it's safe to convert a p-to-sometype to p-to-void, AND it's safe
to convert a p-to-void to p-to-char, THEN it's safe to convert a
p-to-int to p-to-void to p-to-char.
What a typing mess...
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
.
- Follow-Ups:
- Re: pointer to void property
- From: Old Wolf
- Re: pointer to void property
- References:
- pointer to void property
- From: aegis
- Re: pointer to void property
- From: Irrwahn Grausewitz
- Re: pointer to void property
- From: aegis
- pointer to void property
- Prev by Date: Re: floating format not linked
- Next by Date: Re: floating format not linked
- Previous by thread: Re: pointer to void property
- Next by thread: Re: pointer to void property
- Index(es):
Relevant Pages
|