index.c revision 89857
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 1533965Sjdpextern char * strchr(); 1633965Sjdp 1733965Sjdpchar * 1833965Sjdpindex (s, c) 1933965Sjdp char *s; 2033965Sjdp int c; 2133965Sjdp{ 2233965Sjdp return strchr (s, c); 2333965Sjdp} 24