Prototype declarations inside functions
LINNDR%VUENGVAX.BITNET at wiscvm.ARPA
LINNDR%VUENGVAX.BITNET at wiscvm.ARPA
Thu Apr 10 13:02:33 AEST 1986
All this discussion about declarations has me curious about something
and since I don't have a copy of the draft standard, I hope someone who
does will respond.
Can function prototype declarations be made inside functions? The
following is an example of what I mean.
dummy(arg1,arg2)
char *arg1, *arg2;
{
int function_returning_an_int(char *string_pointer);
.
.
.
}
This is (sort of) the way I currently declare external functions only
needed by the current function. If I can do this, it seems that I will
definitely have the prototypes needed in my current scope at compile
time.
David Linn
----------------------------------------------------------
BITNET: LINNDR at VUEngVAX.BITNET or PEARL at VANDVMS1.BITNET
MAILNET: LINN_D_R \
David_R_Linn >@VANDERBILT.MAILNET
David_Linn /
CSNET: drl at vanderbilt.csnet
SnailMail: P.O. 3241-B Vanderbilt
Nashville, TN 37235
More information about the Comp.lang.c
mailing list