ok. Cool Thanks. a few more silly questions.
when assigning a pointer to str why do you not use the & operator? i.e char *pword = &str;Code:char str = "This is a string to split"; char *pword = str;
i thought that with pointers in structs you had to use the -> as opposed to . or is it different if you are assiging a pointer to another pointer?Code:splitter[wordcount].word = pword;