| Contents |
#include <codecogs/strings/word_count.h>
using namespace Strings;
| int | word_count (char * szInputString) This function determines the number of words in a string. | |
| Integer | cc_word_count (String szInputString) This function is available as a Microsoft Excel add-in. |
| intword_count( | char* | szInputString | ) |
#include<codecogs/strings/word_count.h> void main () { char * sz = "This is a string used to count wordcount using the word_count function."; int nWordCount = word_count (sz); printf ("The word count is %d", nWordCount); }Output:
12| szInputString | The null terminated input string |