Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_chrcount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_CHRCOUNT()


Syntax:        L_CHRCOUNT(<expC1>, <expC2>)


Purpose:       Returns the number of times character appears in
               string.


Arguments:     <expC1> is the character to check for

               <expC2> is the string to be checked


Returns:       The number of times <expC1> appears in <expC2>


Examples:      str1 = "This is an example test string"

               ? L_CHRCOUNT("t",str1)             && Result: 3
               ? L_CHRCOUNT("T",str1)             && Result: 1
               ? L_CHRCOUNT("i",str1)             && Result: 3


Notes:          The search operation is case sensitive.


Language:      C

See Also: L_ATNEXT() L_ATTIMES() L_CHRFOUND()

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