Re: pointer to void property



"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
.



Relevant Pages