Function rcutils_find_last
Defined in File find.h
Function Documentation
-
size_t rcutils_find_last(const char *str, char delimiter)
Return the last index of a character in a string.
Search in a string for the last occurence of a delimiter.
- Parameters:
str – [in] null terminated c string to search
delimiter – [in] the character to search for
- Returns:
the index of the last occurence of the delimiter if found, or
- Returns:
SIZE_MAX
for invalid arguments, or- Returns:
SIZE_MAX
if the delimiter is not found.