Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site ncoast.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!cwruecmp!atvax!ncoast!bsa
From: bsa@ncoast.UUCP (Brandon Allbery)
Newsgroups: net.lang.c
Subject: Re: Ptr to func doesn't like casting??
Message-ID: <458@ncoast.UUCP>
Date: Mon, 3-Dec-84 09:19:22 EST
Article-I.D.: ncoast.458
Posted: Mon Dec  3 09:19:22 1984
Date-Received: Thu, 6-Dec-84 05:27:41 EST
References: <13900010@acf4.UUCP> <457@ncoast.UUCP>
Reply-To: bsa@ncoast.UUCP (Brandon Allbery)
Organization: The Galactic Coordinator's Office, Klovia
Lines: 17
Summary: 

One other thing about that final cast:  if I read it correctly, the compiled
code will attempt to execute the string!  You are treating the output
of the function() as a pointer to a function and CALLING it.  The correct
cast is:

	var = ((*int)()) function();

if I remember correctly.

--bsa
-- 
  Brandon Allbery @ North Coast Xenix  |   the.world!ucbvax!decvax!cwruecmp!
6504 Chestnut Road, Independence, Ohio |       {atvax!}ncoast!{tdi1!}bsa
   (216) 524-1416             \ 44131  | E1439@CSUOHIO.BITNET (friend's acct.)
				       |    BALLBERY (161-7070) on MCI Mail
---------------------------------------+---------------------------------------
	      Keeping the Galaxies safe for Civilization... :-)