Main index | Section 3 | 日本語 | 한국인 | Deutsch | Options |
#include <strings.h>
The index() function locates the first occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is considered part of the string; therefore if c is ‘\0’, the functions locate the terminating ‘\0’.
The rindex() function is identical to index(), except it locates the last occurrence of c.
INDEX (3) | March 20, 2011 |
Main index | Section 3 | 日本語 | 한국인 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Computer science would have progressed much further and faster if all of the time and effort that has been spent maintaining and nurturing Unix had been spent on a sounder operating system. | ” |
— The Unix Haters' handbook |