24 Sep
2009
24 Sep
'09
2:32 a.m.
On Wed, Sep 23, 2009 at 09:23:19AM -0700, Taral wrote:
On Tue, Sep 22, 2009 at 9:19 PM, John Meacham
wrote: Actually, I believe 'errno' might require some special support, I seem to recall that taking the address of it was invalid, as it may be some sort of special #define for multi-threaded support to work properly. The only requirement is that it is an lvalue, not that it have an address.
C requires that all lvalues have an address. The standard merely states that the address is volatile (i.e. don't use it).
Not all lvalues have addresses.
register int x; &x;
is an error for instance. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/