summaryrefslogtreecommitdiff
path: root/rust/helpers/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/string.c')
-rw-r--r--rust/helpers/string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/helpers/string.c b/rust/helpers/string.c
new file mode 100644
index 000000000000..8ef30eb07a15
--- /dev/null
+++ b/rust/helpers/string.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/string.h>
+
+__rust_helper void *rust_helper_memchr(const void *s, int c, size_t n)
+{
+ return memchr(s, c, n);
+}