Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

strrchr haystack needle


Alias

None


Description

Find the last occurrence of a character in a string.


Parameters

haystack

The input string.

needle

If needle contains more than one character, only the first is used. This behaviour is different from that of strstr. If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.


Return Value

String: Returns the portion of string, or FALSE if needle is not found. Use libcox_value_to_string() to extract the processing result.