merge from gcc
[deliverable/binutils-gdb.git] / libiberty / index.c
CommitLineData
252b5132
RH
1/* Stub implementation of (obsolete) index(). */
2
39423523
DD
3/*
4
5@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
6
fa9f0e33 7Returns a pointer to the first occurrence of the character @var{c} in
39423523
DD
8the string @var{s}, or NULL if not found. The use of @code{index} is
9deprecated in new programs in favor of @code{strchr}.
10
11@end deftypefn
12
13*/
14
252b5132
RH
15extern char * strchr();
16
17char *
18index (s, c)
19 char *s;
20 int c;
21{
22 return strchr (s, c);
23}
This page took 0.082864 seconds and 4 git commands to generate.