Creating an Array of Strings in C , Sorry if multiple posts
From: Craig Bumpstead (cbumpste_at_yahoo.com.au)
Date: 05/30/04
- Next message: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Previous message: flipdog: "STL warning messages"
- Next in thread: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Reply: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Maybe reply: Mike Wahler: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Previous message: flipdog: "STL warning messages"
- Next in thread: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Reply: Ben Cottrell: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Maybe reply: Mike Wahler: "Re: Creating an Array of Strings in C , Sorry if multiple posts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]