Creating an Array of Strings in C , Sorry if multiple posts

From: Craig Bumpstead (cbumpste_at_yahoo.com.au)
Date: 05/30/04


Date: 29 May 2004 16:09:47 -0700

Hi,

I am sorry this a multiple post, I have waited 24 hours for the post to
appear on the list and it hasn't, so I'm going to re-post.

My apologies if it does eventually appear.

I would like to create an array of Strings in C, but I not sure how.

i.e.

char string1 = {"abc"};
char string2 = {"xyz"};

End result that string3 would contain "abcxyz".

Do I need to use a for loop to iterate it through and then null
terminate '\0' ?

So that I create:

string3 = "abc\0xyz\0"

Cheers,
Craig