summaryrefslogtreecommitdiff
path: root/src/string/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/memchr.c')
-rw-r--r--src/string/memchr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/string/memchr.c b/src/string/memchr.c
index 97ef3c36..49965560 100644
--- a/src/string/memchr.c
+++ b/src/string/memchr.c
@@ -1,12 +1,12 @@
-#if 0
-
#include <string.h>
-#include "_assert.h"
+#include "_safety.h"
/** search memory **/
void * memchr(const void *s, int c, size_t n)
{
+ SIGNAL_SAFE(0);
+
char *p = (char*)s;
size_t i = 0;
@@ -33,6 +33,3 @@ ARGUMENT(c) (converted to an TYPE(unsigned char)).
/*
STDC(1)
*/
-
-
-#endif