summaryrefslogtreecommitdiff
path: root/src/string/memmove_s.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 15:29:55 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 15:29:55 -0500
commit9b6f6642ee252a9bedbe267fd85376fc9359c74f (patch)
tree5676ac47d416ef56b8134d94df49110abc53998f /src/string/memmove_s.c
parent7f9129145f2293cb8c9052ff1f395226421b0ae4 (diff)
update standard and safety checks
Diffstat (limited to 'src/string/memmove_s.c')
-rw-r--r--src/string/memmove_s.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/string/memmove_s.c b/src/string/memmove_s.c
index 343a286d..3dea9080 100644
--- a/src/string/memmove_s.c
+++ b/src/string/memmove_s.c
@@ -1,20 +1,20 @@
-#if 0
-
#include <string.h>
#include <stdlib.h>
-#include "_assert.h"
+#include "_safety.h"
/** move memory **/
errno_t memmove_s(void *s1, rsize_t s1max, const void *s2, rsize_t n)
{
- __ASSERT_NONNULL(s1);
- __ASSERT_NONNULL(s2);
+ SIGNAL_SAFE(0);
+ ASSERT_NONNULL(s1);
+ ASSERT_NONNULL(s2);
if (n > s1max) {
/* do the right thing */
}
- return memmove(s1, s2, n);
+ memmove(s1, s2, n);
+ return 0;
}
/***
@@ -33,6 +33,3 @@ is copied so that the arg(n) bytes are safely written to arg(s1).
/*
CEXT1(201112)
*/
-
-
-#endif