summaryrefslogtreecommitdiff
path: root/gnu/lib/libg++/libiberty/index.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-15 22:20:43 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-15 22:20:43 +0000
commit46b17fd21b2b16c60c2d0c242ed15fad6ab17fc6 (patch)
treec15d088d219cbc2963bcc42c35634a9e4bb296c9 /gnu/lib/libg++/libiberty/index.c
parentf534d44ccdb17011802f89b9ad24fa0712693698 (diff)
Import of GNU libg++ 2.7.1 port (prepared by Erik Theisen)
Diffstat (limited to 'gnu/lib/libg++/libiberty/index.c')
-rw-r--r--gnu/lib/libg++/libiberty/index.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/lib/libg++/libiberty/index.c b/gnu/lib/libg++/libiberty/index.c
new file mode 100644
index 00000000000..e5a00f54d94
--- /dev/null
+++ b/gnu/lib/libg++/libiberty/index.c
@@ -0,0 +1,11 @@
+/* Stub implementation of (obsolete) index(). */
+
+extern char * strchr();
+
+char *
+index (s, c)
+ char *s;
+ int c;
+{
+ return strchr (s, c);
+}