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 - strafter() return string end after substring http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 strafter()          Return string end after substring
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char strafter extern
   param const char cString, ;
         const char cSearch

 Arguments
   cString is a string to scan.
   cSearch is a substring to search for.

 Return
   A substring of cString that begins after the occurrence of cSearch.
   An empty string is returned if cSearch is not found in cString.

 Description
   The strafter() function scans a string for a passed substring, and
   returns the end part of the original string that falls behind the
   found search substring.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_strafter
   ? strafter( "Hello world", "Hello " )      // print "world"
   ? strafter( "Hello world", "hello" )       // print "" (not found)
   endproc

   proc main
   Test_strafter()
   endproc

See Also: strbetween()

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