I'm doing a small string parser, the main problem is that I didn't want to create 10 different char arrays, so I did with only one. It's causing me a buffer overflow...
char buff[BUFSIZ], *words;
printf("Enter the numbers (separated by space):\n");
fgets(buff, sizeof(buff), stdin);
sscanf(buff, "%s %s %s %s %s %s %s %s %s %s", words, words, words,
words, words, words, words, words, words, words);
for(i=0; i > 10; i++)
printf("The %d word is %s\n", i, words[i]);