typedefs and prototypes
Larry Miller
lmiller at venera.isi.edu
Wed Sep 28 07:03:35 AEST 1988
In article <13709 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>In article <12326 at oberon.USC.EDU> english at panarea.usc.edu (Joe English) writes:
>
>(Whether this means that
>
> void foo(int i, char *i);
>
>is legal I do not know.)
>--
>In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
>Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
Identifiers in prototypes have scope to the end of the declaration.
The above is not legal (though notice the ancient date on my copy of
the draft. [Ref: Draft standard, Nov., 1985 (!), Ss C.5.3.3]
In a declaration that is not a function definition [i.e., a
function prototype], any identifier declared in the list has
function prototype scope, which extends to the end of the
declaration...
Larry Miller lmiller at venera.isi.edu (no uucp)
USC/ISI 213-822-1511
4676 Admiralty Way
Marina del Rey, CA. 90292
More information about the Comp.lang.c
mailing list