M
Mac
Is it legal to declare errno after you've included errno.h?
For example:
#include<errno.h>
....
int main (void)
{
extern int errno;
....
}
I see in the standard that errno may be a macro, and I see that defining
errno is illegal, but I don't think the declaration above counts as a
definition since it doesn't reserve storage. On the other hand, if errno
IS a macro, the declaration above could easily be a syntax error after
pre-processing.
Please enlighten me.
--Mac
For example:
#include<errno.h>
....
int main (void)
{
extern int errno;
....
}
I see in the standard that errno may be a macro, and I see that defining
errno is illegal, but I don't think the declaration above counts as a
definition since it doesn't reserve storage. On the other hand, if errno
IS a macro, the declaration above could easily be a syntax error after
pre-processing.
Please enlighten me.
--Mac