Ptr to func doesn't like casting??
Brandon Allbery
bsa at ncoast.UUCP
Tue Dec 4 00:19:22 AEST 1984
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 at CSUOHIO.BITNET (friend's acct.)
| BALLBERY (161-7070) on MCI Mail
---------------------------------------+---------------------------------------
Keeping the Galaxies safe for Civilization... :-)
More information about the Comp.lang.c
mailing list