Re: Function Pointers?

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 02/18/98


On Wed, 18 Feb 1998, Joachim Pileborg wrote:

->>   *spell_info[spl].spell_function = func;  //ERROR points here
->
->   spell_info[spl].spell_function = func;

Quite a lot of instructions when all he really had to do was this.  I
tried sending a message privately twice, but it got bounced.  I would
highly suggest to the original poster a decent book on C ("decent"
being defined as one that covers pointers/function pointers) that
should describe why you don't want/need the "*".

-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST