summaryrefslogtreecommitdiff
path: root/libiberty/index.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-09-26 18:45:50 +0000
committerDJ Delorie <dj@delorie.com>2001-09-26 18:45:50 +0000
commit80699cc1158e6902fa7052f15008a7d14011f50c (patch)
tree210ff566d6a01b4c48d8ca94bc1555d5c1ef770b /libiberty/index.c
parent08a3fc08804a1e6f4567fbfd0ed64a08b66c98e7 (diff)
downloadbinutils-redhat-80699cc1158e6902fa7052f15008a7d14011f50c.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/index.c')
-rw-r--r--libiberty/index.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/index.c b/libiberty/index.c
index e5a00f54d9..9c2ea82661 100644
--- a/libiberty/index.c
+++ b/libiberty/index.c
@@ -1,5 +1,17 @@
/* Stub implementation of (obsolete) index(). */
+/*
+
+@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
+
+Returns a pointer to the first occurance of the character @var{c} in
+the string @var{s}, or NULL if not found. The use of @code{index} is
+deprecated in new programs in favor of @code{strchr}.
+
+@end deftypefn
+
+*/
+
extern char * strchr();
char *