From 2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 19 Jan 2009 17:25:17 +0000 Subject: Rename vendor/binutils/*/contrib to vendor/binutils/*/x Binutils has a "contrib" subdirectory - thus flattening cannot happen without renaming the upper level contrib directory in a first pass. Also, don't record this move and remove any keyword expansion. --- x/binutils/libiberty/index.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 x/binutils/libiberty/index.c (limited to 'x/binutils/libiberty/index.c') diff --git a/x/binutils/libiberty/index.c b/x/binutils/libiberty/index.c new file mode 100644 index 0000000..a2e2727 --- /dev/null +++ b/x/binutils/libiberty/index.c @@ -0,0 +1,23 @@ +/* Stub implementation of (obsolete) index(). */ + +/* + +@deftypefn Supplemental char* index (char *@var{s}, int @var{c}) + +Returns a pointer to the first occurrence of the character @var{c} in +the string @var{s}, or @code{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 * +index (s, c) + char *s; + int c; +{ + return strchr (s, c); +} -- cgit v1.1