The index function is identical to the strchr function, and is provided for compatibility with some UNIX implementations.