Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_strcount() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_STRCOUNT()

 DESCRIPTION

 C_STRCOUNT() reports the number of occurrences for the specified
 characters in a given string.

 SYNTAX

 C_STRCOUNT(chars, string)

 PARAMETERS

 chars (C) is the single character or group of characters to find in
 the string.

 string (C) is the character string to search.

 RETURNS

 C_STRCOUNT() returns the number of occurrences found in the string,
 or zero (0) if the characters are not found.

 EXAMPLES

 s1 = "W+/B,B/W,,,BG/N"

 ? c_strcount(",", s1) --> 4      && Found 4 commas in string s1
 ? c_strcount("+", s1) --> 1      && Found 1 plus sign in string s1
 ? c_strcount("*", s1) --> 0      && Found no asterisks in string s1


See Also: C_STRSRCH() C_STRPARSE() C_PARTSTR() C_STRDELIM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson