Re: "PORTING C" > NULL problem!



Ulrich Eckhardt wrote:
A void pointer doesn't have any type

This is not true formally, and I don't think it's useful to think this way informally either:
6.2.5p19 The void type comprises an empty set of values; it is an incomplete type that cannot be completed.

The type of a void pointer is, of course, void*.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
.



Relevant Pages

  • Re: pointer dereference
    ... type void -- ie, I think that the Standard's statement otherwise is ... a less-optimal choice. ... empty set has no members, not even a single, unique, empty member. ...
    (comp.lang.c)
  • Re: "PORTING C" > NULL problem!
    ... it is an incomplete type that cannot be completed. ... Since void is incomplete, you can never have ... An empty set of values means pretty much the same, ...
    (microsoft.public.vc.language)
  • Re: Void variables
    ... type comprises an empty set of values", so inverting your argument, that ... would suggest that an object of void type should contain -INFINITY bits. ... That presents certain practical problems :-), ... So a void type is just the empty set of values. ...
    (comp.lang.c)
  • Re: "PORTING C" > NULL problem!
    ... void is an incomplete type and void * is a complete type. ... "Ulrich Eckhardt" wrote in message ... it is an incomplete type that cannot be completed. ... An empty set of values means pretty much the same, ...
    (microsoft.public.vc.language)
  • Re: printing address using pointer
    ... Ulrich Eckhardt scribbled the following: ... > nilesh wrote: ... and ip should be cast to void *. ...
    (comp.lang.c)