Re: Reading external variables from a library (BIND)



Steven G. Kargl wrote:
(snip)

From FreeBSD /usr/include/errno.h,

#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
int * __error(void);
__END_DECLS
#define errno (* __error())
#endif

errno is not required to be an int variable. It is required to be a modifable lvalue.

In K&R2, the closest I have to a copy of the C89
standard, errno is described as an expression.
It is supposed to be close to the final draft of the
standard, similar to what we have for Fortran 2003.

-- glen

.