Re: void pointer



Roman Mashak wrote:

.... snip ...

My question is: is this valid type casting

n->data = (void *)data;

Not really. Just omit the cast. Actually, you should probably
know the type of *data and do a deep copy.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net


--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages