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 - ltrim() remove leading spaces from a string http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ltrim()             Remove leading spaces from a string
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char ltrim extern
   param const char cString

 Arguments
   cString is a character string.

 Return
   A string derived from the input string with leading spaces removed.

 Description
   The ltrim() function removes leading blank characters from cString.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_ltrim
   ? ltrim( "     John & Celine Lowrey" ) // returns "John & Celine Lowrey"
   ? ltrim( chr( 12 ) + "  Start      " ) // no change occurs to string
   ? ltrim( space(90) )                   // returns NULL string
   endproc

   proc main
   Test_ltrim()
   endproc

See Also: alltrim() rtrim() trim()

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