A footnote in the section describing <errno.h> says:
The macro errno need not be the identifier of an object. It might
expand to a modifiable lvalue resulting from a function call (for
example, *errno()).
Footnotes are non-normative, and this one is presumably intended to be informal, but that's not a valid macro definition for errno, both
because it's not fully protected by parentheses and because the function can't be named "errno".
Keith Thompson <[email protected]> writes:
A footnote in the section describing <errno.h> says:
The macro errno need not be the identifier of an object. It might
expand to a modifiable lvalue resulting from a function call (for
example, *errno()).
Footnotes are non-normative, and this one is presumably intended to be
informal, but that's not a valid macro definition for errno, both
because it's not fully protected by parentheses and because the function
can't be named "errno".
I see no reason the function couldn't be named "errno".
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,128 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 46:21:04 |
| Calls: | 14,453 |
| Calls today: | 3 |
| Files: | 186,423 |
| D/L today: |
23,372 files (6,712M bytes) |
| Messages: | 2,558,324 |