From 39423523167c47f72822dbb9eb3ab4a0dfeafe68 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 26 Sep 2001 18:45:50 +0000 Subject: merge from gcc --- libiberty/index.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libiberty/index.c') diff --git a/libiberty/index.c b/libiberty/index.c index e5a00f5..9c2ea82 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 * -- cgit v1.1