33 #include "safeclib_private.h" 34 #include "safe_mem_constraint.h" 35 #include "mem_primitives_lib.h" 36 #include "safe_mem_lib.h" 74 memset16_s(uint16_t *dest, rsize_t smax, uint16_t value, rsize_t n)
81 return (RCNEGATE(ESNULLP));
87 return (RCNEGATE(ESZEROL));
90 if (smax > RSIZE_MAX_MEM) {
93 return (RCNEGATE(ESLEMAX));
96 if (n > RSIZE_MAX_MEM16) {
112 return (RCNEGATE(err));
errno_t memset16_s(uint16_t *dest, rsize_t smax, uint16_t value, rsize_t n)
Sets the first n uint16_t values starting at dest to the specified value, but maximal smax bytes...
void mem_prim_set16(uint16_t *dest, uint32_t len, uint16_t value)
Sets len uint16_t's starting at dest to the specified value.
void invoke_safe_mem_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.