Path: utzoo!attcan!uunet!husc6!purdue!decwrl!adobe!burgett From: burgett@adobe.com (Michael Burgett) Newsgroups: comp.lang.c Subject: Re: Subroutine layout in C Message-ID: <134@adobe.COM> Date: 21 Dec 88 16:48:23 GMT References: <2800002@uxg.cso.uiuc.edu> Sender: news@adobe.COM Reply-To: burgett@adobe.COM (Michael Burgett) Lines: 31 In article <2800002@uxg.cso.uiuc.edu> phil@uxg.cso.uiuc.edu writes: [ description of needed module deleted ] >How do I lay out the arrangement of source for S? An example would be >appreciated. Thanks. in a file, say S.c: static int foo, bar; /* foo and bar are accessable by all functions in this file but are not visible outside it. */ int S() /* S() will be available as a public symbol */ { ... } static int f1() /* can be referenced by S() or f2() but is not { visible outside this file */ ... } static int f2() /* can be referenced by S() or f1() but is not { visible outside this file */ ... } should do what you are asking for... ---------------------------------- mike burgett burgett@adobe.com "squid and red bean stew served daily...."