aboutsummaryrefslogtreecommitdiffstats
path: root/memory/strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/strchr.c')
-rw-r--r--memory/strchr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/memory/strchr.c b/memory/strchr.c
new file mode 100644
index 0000000..4638c88
--- /dev/null
+++ b/memory/strchr.c
@@ -0,0 +1,6 @@
+#include "memory.h"
+
+char *strchr(char const *buffer, int value)
+{
+ return memchr(buffer, value, strlen(buffer) + 1);
+}