]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/index.c
Revert "sphinx: add missing newline for conf.py files."
[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
e922f978 7Returns a pointer to the first occurrence of the character @var{c} in
7f8fa05d 8the string @var{s}, or @code{NULL} if not found. The use of @code{index} is
aaa5f039
DD
9deprecated in new programs in favor of @code{strchr}.
10
11@end deftypefn
12
13*/
14
6da879de 15extern char * strchr(const char *, int);
6599da04
JM
16
17char *
f9a9ac80 18index (const char *s, int c)
6599da04
JM
19{
20 return strchr (s, c);
21}