summaryrefslogtreecommitdiff
path: root/src/strings/rindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/rindex.c')
-rw-r--r--src/strings/rindex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/strings/rindex.c b/src/strings/rindex.c
new file mode 100644
index 00000000..17bae7e3
--- /dev/null
+++ b/src/strings/rindex.c
@@ -0,0 +1,10 @@
+#include <strings.h>
+
+char *rindex(const char *s, int c)
+{
+ return strrchr(s, c);
+}
+
+/*
+XOPEN(400,700)
+*/