strings

word count

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.40
sub units 0.00
add a commercial licence to your cart
0
viewed 8182 times and licensed 197 times
www.codecogs.com/d-ox/strings/word_count.php

This function determines the number of words in a string.

Controller: nitin_ananda    Contact Controller

Contents hide toc

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.
Click for details on using CodeCogs in 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:
#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:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Page Comments

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-08-20 10:24:10

Valid CSS!   Valid XHTML 1.0 Transitional