Re: memorize

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/02/97


On Thu, 2 Oct 1997, Brian Williams - Nashak wrote:

>Daniel, I'm not familiar with pointers besides char *.., how would I go
>about using a int *memorized; pointer? Would it be the same, just sprintf
>or something to add to it? How would I remove things from it and so forth
>when a spell is cast?

It would be treated as an integer except for two things:
A) You have to allocate memory for it.  ie. malloc(sizeof(int))
B) You have to use the * operator to get the value.

The pointer concept carries over since a char * is just an array of char's
anyway (null terminated).

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/08/00 PST