char* items[3] to individual string items

Hey all,

I do not deal with this type of data often and my searches are not showing me what i need.

I have a

char* items[3]

that contains random items from another function.

I have a struct that has 3 string that I need to put the actual data from the char* into.

char* item[0] into str1
char* item[1] into srr2
char* item[2] into str3

I am not sure where to start with this.
Can you not simply
1
2
3
str1=item[0];
str2=item[1];
str3=item[2];
?
thank you. it did work with one change. the struct was throwing me.

ended up being

node->str1=item[0];
etc.

Topic archived. No new replies allowed.