diff options
Diffstat (limited to 'libiberty/index.c')
-rw-r--r-- | libiberty/index.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 * |