CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

Strings

word count

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.52
sub units 0.00
add a commercial licence to your cart
0
viewed 8240 times and licensed 212 times

This function determines the number of words in a string.

Controller: nitin_ananda  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Interface

#include <codecogs/strings/word_count.h>

using namespace Strings;

int word_count (char * szInputString)
This function determines the number of words in a string.
ExcelInteger cc_word_count (String szInputString)
This function is available as a Microsoft Excel add-in.

Function Documentation

Word Count Calculator
  
Add calculator to website or email
 
intword_countchar*szInputString )
The assumptions involved are:
Example 1:
#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
Parameters:
szInputStringThe null terminated input string
Returns:
Number of words in the input string.
Authors:
Nitin Ananda
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2010-03-14 02:15:05

Valid CSS!   Valid XHTML 1.0 Transitional