Well, no, not like you want.
First it should be
Code:
strcpy(words[wordcount].word, str);
Remember: destination, source is the argument for strcpy, in order.
Then you have to remember to truncate the string first, or you'll get the entire string copied.
So it needs to be:
Code:
str[i] = 0;
words[wordcount].word = (char *) malloc(sizeof(len));
strcpy(words[wordcount].word, str);
printf("%s",words[wordcount].word);
wordcount++;
---OR---
Code:
str[i] = 0;
words[wordcount].word = str;
printf("%s",words[wordcount].word);
wordcount++;
Indentation can use some work too.
Here's an excellent guide: http://cpwiki.sf.net/User:Elyisa/Indentation