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_attimes()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ATTIMES()


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



Purpose:       To count the number of times a string is found within
               another string.


Arguments:     <expC1> is the smaller string for which the search is
               being made.

               <expC2> is the longer string within which the search is
               being made.


Returns:       An integer numeric value indicating the number of times
               the first string is contained in the second string.


Usage:         To search for a given string.


Examples:      ? L_ATTIMES("ab","abracadabra")    && Result: 2
               ? L_ATTIMES("ac","abracadabra")    && Result: 1


Notes:          The search operation is case sensitive.


Language:      C

See Also: L_ATNEXT() L_CHRCOUNT() L_CHRFOUND()

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