httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@ai.mit.edu (Robert S. Thau)
Subject Re: I *don't* want Paul's style guide.
Date Tue, 02 Jul 1996 15:09:34 GMT
  A6.6
  
  An integral constant expression with value 0, or such an expression
  cast to type void *, may be converted, by a cast, by assignment, or
  by comparison, to a pointer of any type. This produces a null
  pointer that is equal to another null pointer of the same type, but
  unequal to any pointer to a function or object.

Just to nail this down --- when "p" has pointer type, the value of the
expression "!p" is defined by a comparison of p against a null
pointer, as defined above.  The value of the construct is in all cases 
well-defined, regardless of the machine-dependant details of pointer
representations.

rst


Mime
View raw message