Re: identifier scope in old-style declarations
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Wed, 06 Aug 2008 16:06:59 -0400
Eric Sosman wrote:
.... snip ...
For example, how would you describe the error in
#include <stdio.h>
int man(void) {
return puts ("Hello, world!\n") == EOF;
}
? (Yes, this is a trick question.)
What error? The result is linkable, but can't be a program. It
always returns 0, barring a write error. Lacking a header file,
linking will require an extrn statement or equivalent in the
caller.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
.
- References:
- identifier scope in old-style declarations
- From: Thomas Pornin
- Re: identifier scope in old-style declarations
- From: Eric Sosman
- Re: identifier scope in old-style declarations
- From: Huibert Bol
- Re: identifier scope in old-style declarations
- From: Eric Sosman
- identifier scope in old-style declarations
- Prev by Date: Re: C99 IDE for windows
- Next by Date: Re: identifier scope in old-style declarations
- Previous by thread: Re: identifier scope in old-style declarations
- Index(es):
Relevant Pages
|
Loading