]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/index.c
configure.in: Don't use in-tree texinfo, because libiberty must be built before it.
[thirdparty/gcc.git] / libiberty / index.c
CommitLineData
6599da04
JM
1/* Stub implementation of (obsolete) index(). */
2
aaa5f039
DD
3/*
4
5@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
6
7Returns a pointer to the first occurance of the character @var{c} in
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
6599da04
JM
15extern char * strchr();
16
17char *
18index (s, c)
19 char *s;
20 int c;
21{
22 return strchr (s, c);
23}