Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: help with declaration Message-ID: <5999@brl-smoke.ARPA> Date: Fri, 19-Jun-87 01:02:48 EDT Article-I.D.: brl-smok.5999 Posted: Fri Jun 19 01:02:48 1987 Date-Received: Sat, 20-Jun-87 07:11:17 EDT References: <8286@ut-sally.UUCP> <7001@alice.UUCP> <364@sol.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 Keywords: function pointer In article <364@sol.ARPA> crowl@rochester.UUCP (Lawrence Crowl) writes: > extern func_ptr_func_int getfunc ; The problem with this is that anyone reading your code would have to untangle the several levels of typedef in order to determine the meaning of this declaration, whereas with extern int (*getfunc())(); the meaning of the declaration is patent. This is not a particularly complicated construct; anyone who has to read C code should learn how type specification works in C, after which this is easy to understand.