summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/string/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libc-top-half/musl/src/string/strrchr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/string/strrchr.c b/libc-top-half/musl/src/string/strrchr.c
new file mode 100644
index 0000000..98ad1b0
--- /dev/null
+++ b/libc-top-half/musl/src/string/strrchr.c
@@ -0,0 +1,6 @@
+#include <string.h>
+
+char *strrchr(const char *s, int c)
+{
+ return __memrchr(s, c, strlen(s) + 1);
+}