Re: [CODE] Help

From: Daniel W. Burke (dwb@IX.NETCOM.COM)
Date: 12/06/97


On Sat, 6 Dec 1997, Chuck Reed wrote:

> Umm, you are really confusing me.  Daniel sent a letter saying that to have
> an array of strings, I needed this:
>
> char *abil_desc_parse[] = {
>     "This is one string.",
>     "This is another string.",
>     "This is the last one."
>   };
>
> And this is what I already had:
>
> char *abil_desc_parse = {
> "blah blah blah blah blah \r\n
>  blah blah blah blah blah\r\n",
> "\0"
> };
>
> char *abil_desc_parse = {
> "blah blah blah blah blah \r\nblah blah blah blah blah\r\n",
> "\0"
> };

Put the quotes around them anyways... the compiler will treat them as the
same line string still, so long as you just do not put a comma after the
quote on the first line..

char *str = {
  "blah\r\nblah\r\n",
  "BlahII\r\n"
};

is treated the same as

char *str = {
  "blah\r\n"
  "blan\r\n",
  "BlahII\r\n"
};


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