32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 90 if (dmax > RSIZE_MAX_STR) {
100 if (dmax <= RSIZE_MIN_STR) {
116 while (orig_dmax) { *orig_dest++ =
'\0'; orig_dmax--; }
119 "strljustify_s: dest is unterminated",
131 while ((*dest ==
' ') || (*dest ==
'\t')) {
138 if (orig_dest != dest) {
140 *orig_dest++ = *dest;
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.
errno_t strljustify_s(char *dest, rsize_t dmax)
Removes beginning whitespace from the string pointed to by dest by shifting the text left over writti...