NUMTOKEN()
Retrieves the number of tokens in a string
- Syntax
-
- NUMTOKEN (<cString>, [<cTokenizer>], [<nSkipWidth>]) -> nTokenCount
Tests
numtoken ("Hello, World!") == 2
numtoken ("This is good. See you! How do you do?",".!?") == 3
numtoken ("one,,three,four,,six",",",1) == 6
- Status
- Ready
- Compliance
-
- NUMTOKEN() is compatible with CT3's NUMTOKEN().
- Platforms
-
- All
- Files
-
- Source is token1.c, library is libct.
- See Also