Function rcutils_find
Defined in File find.h
Function Documentation
-
size_t rcutils_find(const char *str, char delimiter)
Return the first index of a character in a string.
Search in a string for the first 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 first occurence of the delimiter if found, or
- Returns:
SIZE_MAX
for invalid arguments, or- Returns:
SIZE_MAX
if the delimiter is not found.