133965Sjdp/* Stub implementation of (obsolete) index(). */ 233965Sjdp 389857Sobrien/* 489857Sobrien 589857Sobrien@deftypefn Supplemental char* index (char *@var{s}, int @var{c}) 689857Sobrien 789857SobrienReturns a pointer to the first occurrence of the character @var{c} in 889857Sobrienthe string @var{s}, or @code{NULL} if not found. The use of @code{index} is 989857Sobriendeprecated in new programs in favor of @code{strchr}. 1089857Sobrien 1189857Sobrien@end deftypefn 1289857Sobrien 1389857Sobrien*/ 1489857Sobrien 15218822Sdimextern char * strchr(const char *, int); 1633965Sjdp 1733965Sjdpchar * 18218822Sdimindex (const char *s, int c) 1933965Sjdp{ 2033965Sjdp return strchr (s, c); 2133965Sjdp} 22