Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!ut-sally!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: NULL ROUTINE POINTERS Message-ID: <115@hadron.UUCP> Date: Tue, 3-Dec-85 00:49:20 EST Article-I.D.: hadron.115 Posted: Tue Dec 3 00:49:20 1985 Date-Received: Thu, 5-Dec-85 08:11:49 EST References: <218@brl-tgr.ARPA> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 17 Summary: Almost In article <218@brl-tgr.ARPA> bilbo.niket@locus.ucla.edu (Niket K. Patwardhan) writes: >I forgot a pair of parenthesis. >(short (*())) 0 Good: you added a pair of parentheses. Bad: one fell short. If I assigned this value to func, then called it, I would have to say: (*func)() The type that this returns is short. (Short int, more formally.) Therefore, I'd have to declare func: short int (*func)() and cast this (short int (*)()) 0. Doug already said this, but without explanation. -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}