Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Can this be done Message-ID: <6045@brl-smoke.ARPA> Date: Wed, 1-Jul-87 17:19:03 EDT Article-I.D.: brl-smok.6045 Posted: Wed Jul 1 17:19:03 1987 Date-Received: Fri, 3-Jul-87 01:46:31 EDT References: <8125@brl-adm.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <8125@brl-adm.ARPA> jfjr@mitre-bedford.arpa writes: >... Can I loop through my array and call the functions in it even >though none are declared external anywhere? It's not only legal, it's a good way to hide function names from other modules. A function need not be visible globally in order to be called from other modules. (The only need for global visibility is to permit external linkages to be resolved by the link editor; in your case there are no such linkages.) I won't guarantee that all C implementations handle this correctly, but it's an implementation bug if one doesn't. (I don't know of any C implementations that can't handle this.)