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
>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, | Genius may have its limitations, but   (mostly) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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