Re: memorize

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 10/02/97


On Fri, 3 Oct 1997, Akuma/Chris Baggett/DOOMer wrote:

-+ question here, doesn't Circle use the CREATE() macro?
-+which in turn uses  _c_alloc()?  NOT _m_alloc()?

Uhm, what's the point?  calloc() is just malloc() that takes
an extra parameter.  They do (essentially) the same thing.

  data = (type *) calloc(sizeof(type), elements);

is (again, essentially) the same as

  data = (type *) malloc(sizeof(type)*elements);


--
Daniel Koepke -:- dkoepke@california.com -:-  [Shadowlord/Nether]
Think.


     +------------------------------------------------------------+
     | 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