Re: [NEWBIE] Arrays

From: George (greerga@CIRCLEMUD.ORG)
Date: 10/26/98


On Sun, 25 Oct 1998, Jourge Fuzz Bush wrote:

>Well I'm trying to define an global array of structs. Now when I do the
>following:
[...]
>struct obj_data *tempname[] { { '\0' } };
>it writes to the first thing fine but after that no matter what you do
>it crashes.
>
>Anybody know how to declare a struct like I'm using. And please don't
>say to use the create function because it don't apply to what I'm using
>it for.

If you mean static, struct obj_data *tempname[10];

Get a C book too.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- 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/15/00 PST