32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 88 if (dmax > RSIZE_MAX_STR) {
97 if (*dest ==
'\0' || dmax <= RSIZE_MIN_STR) {
110 while (orig_dmax) { *orig_dest++ =
'\0'; orig_dmax--; }
113 "strremovews_s: dest is unterminated",
126 while ((*dest ==
' ') || (*dest ==
'\t')) {
133 if (orig_dest != dest && *dest) {
135 *orig_dest++ = *dest;
145 while ((*dest ==
' ') || (*dest ==
'\t')) {
errno_t strremovews_s(char *dest, rsize_t dmax)
Removes beginning and trailing whitespace from the string pointed to by dest by shifting the text lef...
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.