Re: Reading external variables from a library (BIND)

Steven G. Kargl wrote:

From FreeBSD /usr/include/errno.h,

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

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