Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!brl-adm!brl-smoke!smoke!LINNDR%VUENGVAX.BITNET@wiscvm.ARPA From: LINNDR%VUENGVAX.BITNET@wiscvm.ARPA Newsgroups: net.lang.c Subject: Prototype declarations inside functions Message-ID: <2509@brl-smoke.ARPA> Date: Wed, 9-Apr-86 22:02:33 EST Article-I.D.: brl-smok.2509 Posted: Wed Apr 9 22:02:33 1986 Date-Received: Sat, 12-Apr-86 01:53:26 EST Sender: news@brl-smoke.ARPA Lines: 31 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@VUEngVAX.BITNET or PEARL@VANDVMS1.BITNET MAILNET: LINN_D_R \ David_R_Linn >@VANDERBILT.MAILNET David_Linn / CSNET: drl@vanderbilt.csnet SnailMail: P.O. 3241-B Vanderbilt Nashville, TN 37235