Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) Tools Help GTL - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

GT_STRCSPN()

Return length of prefix in string of chars NOT in set.
---------------------------------------------------------------------------------

 Syntax

        GT_strcspn(<cString>, <cSet>) --> nLength  

 Arguments

        <cString>   - The string to find the prefix in <cSet>    - The 
                  set of characters

 Returns

        <nLength>     - The length of a string upto a character in the 
                  set

 Description

      Return the number of characters in the leading segment of a  string
      that consists solely of characters NOT in the set.

 Examples

      ? GT_strcspn("this is a test", "as ")      // prints 3
      ? GT_strcspn("this is a test", "elnjpq")   // prints 11

Status

      Ready

 Files

      Library is libgt
      Library is libgt

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