]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/index.c
[Ada] Sem_Ch13: fix uninitialized parameter static analysis warning
[thirdparty/gcc.git] / libiberty / index.c
CommitLineData
28e9041c 1/* Stub implementation of (obsolete) index(). */
2
614a23c6 3/*
4
5@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
6
997fdf4a 7Returns a pointer to the first occurrence of the character @var{c} in
a3a8a3df 8the string @var{s}, or @code{NULL} if not found. The use of @code{index} is
614a23c6 9deprecated in new programs in favor of @code{strchr}.
10
11@end deftypefn
12
13*/
14
8858115e 15extern char * strchr(const char *, int);
28e9041c 16
17char *
8e1547da 18index (const char *s, int c)
28e9041c 19{
20 return strchr (s, c);
21}