14 if (s1 ==
NULL || s2 ==
NULL || s1max > RSIZE_MAX || n > RSIZE_MAX || n > s1max)
16 goto runtime_constraint_violation;
19 if ((d < s && d + n > s) || (s < d && s + n > d))
21 goto runtime_constraint_violation;
60runtime_constraint_violation:
61 if (s1 !=
NULL && s1max <= RSIZE_MAX)
constraint_handler_t _constraintHandler
#define _CONSTRAINT_VIOLATION(e)
#define EINVAL
Invalid argument.
#define NULL
Pointer error value.
errno_t memcpy_s(void *_RESTRICT s1, rsize_t s1max, const void *_RESTRICT s2, rsize_t n)
__UINTPTR_TYPE__ uintptr_t
_PUBLIC void * memset(void *s, int c, size_t n)