34 #include "safe_str_lib.h" 35 #include "safe_str_constraint.h" 86 #include "safeclib_private.h" 87 #include "safe_str_constraint.h" 88 #include "safe_str_lib.h" 90 int vsnprintf_s(
char *restrict dest, rsize_t dmax,
const char *restrict fmt, va_list ap)
94 if (dmax > RSIZE_MAX_STR) {
97 return RCNEGATE(ESLEMAX);
103 return RCNEGATE(ESNULLP);
109 return RCNEGATE(ESNULLP);
115 return RCNEGATE(ESZEROL);
118 ret = vsnprintf(dest, (
size_t)dmax, fmt, ap);
int vsnprintf_s(char *restrict dest, rsize_t dmax, const char *restrict fmt, va_list ap)
The vsnprintf_s function composes a string with same test that would be printed if format was used on...
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.