Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_strparse() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_STRPARSE()

 DESCRIPTION

 C_STRPARSE() searches a given string for the characters between a
 specified delimiter and returns the characters.  It can be used to
 find the first or any occurrence of the characters between the
 delimiter.

 SYNTAX

 C_STRPARSE(delim, string [,occurrence])

 PARAMETERS

 delim (C) is the delimiter to use for the search.

 string (C) is the character string to search.

 occurrence (N) is the number of occurrences of the delimiter to
 find.  If occurrence is not specified, the first occurrence is returned.

 RETURNS

 C_STRPARSE() returns the string of characters found between the
 delimiter, or null ("") if the delimiter is not found.

 EXAMPLES

 s1 = ":123:456:789:"

 ? c_strparse(":",s1)   --> 123     && Returns first occurrence
 ? c_strparse(":",s1,3) --> 789     && Returns third occurrence
 ? c_strparse(":",s1,5) --> ""      && Returns null - not found


See Also: C_STRSRCH() C_STRCOUNT() C_PARTSTR() C_STRDELIM()

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