Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - isdigit() determine if a string begins with a digit http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 isdigit()           Determine if a string begins with a digit
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func logical isdigit extern
   param const char cString

 Arguments
   cString is a character string.

 Return
   A logical indicating if the input string begins with a digit.

 Description
   The isdigit() function returns .t. if the specified character string
   cString begins with a digit.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_isdigit
   ? isdigit( "1234 South Street" )        // prints .t.
   ? isdigit( " Lloyd Tabb" )              // prints .f.
   ? isdigit( "Lloyd Tabb" )               // prints .f.
   ? isdigit( "44495" )                    // prints .t.
   endproc

   proc main
   Test_isdigit()
   endproc

See Also: isalpha()

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