source: branches/libc-0.6/src/binutils/libiberty/index.c

Last change on this file was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 435 bytes
Line 
1/* Stub implementation of (obsolete) index(). */
2
3/*
4
5@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
6
7Returns a pointer to the first occurrence of the character @var{c} in
8the string @var{s}, or @code{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
15extern char * strchr();
16
17char *
18index (s, c)
19 char *s;
20 int c;
21{
22 return strchr (s, c);
23}
Note: See TracBrowser for help on using the repository browser.