NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO
$(NUCLEUS_DIR)/lib/classix/libsys.s.a #include <string.h>char * index(const char * s, int c);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The index() function locates the first character matching c (converted to a char ) in the null-terminated string s .
The rindex() function locates the last character matching c (converted to a char ) in the null-terminated string s .
A pointer to the character is returned if found; otherwise NULL is returned. If c is 0 , rindex() or index() locates the terminating 0.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO