Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site alberta.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!alberta!lake From: lake@alberta.UUCP (Robert Lake) Newsgroups: net.lang.c Subject: declaring routines which return function pointers Message-ID: <249@alberta.UUCP> Date: Tue, 11-Dec-84 13:06:53 EST Article-I.D.: alberta.249 Posted: Tue Dec 11 13:06:53 1984 Date-Received: Fri, 14-Dec-84 07:02:10 EST Distribution: net Organization: U. of Alberta, Edmonton, AB Lines: 20 I have a routine which resembles the following: int (*f)(); int fa(), fb(); fa() { f = fb; return(f); } fb() { } The problem with the above is that lint complains about an illegal combin- ation of a pointer with an integer in the 'return' statement. I have tried various casts and function declarations to try to satisfy lint, but none of them have worked. Does anybody know what I should do to keep lint happy? Robert Lake (alberta!lake) University of Alberta