Locates the first occurrence of a specified character in a string.
#include <string.h> char *index ( const char *s, int c);
(IN) Points to the string containing characters for which to search.
(IN) Specifies the character for which to search.
Returns a pointer to the located character or a NULL pointer if the character does not occur in the string.
The index interface has been implemented as a macro. The strchr function is the preferred interface.