Debian Codegraph @

doc/tutorial_src/words2.c

raw symbols SCIP
1 #include <string.h>
2
3 int split_words(char *sentence) {
4 int i, count = 1;
5 for (i = 0; i < strlen(sentence); i++) {
6 if (sentence[i] == ' ') {
7 count++;
8 }
9 }
10 return count;
11 }