32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 73 const char *src, rsize_t *index)
76 bool there_is_a_diff =
false;
103 if (dmax > RSIZE_MAX_STR) {
115 while (*dest && *src && dmax) {
118 there_is_a_diff =
true;
127 if (there_is_a_diff) {
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 strlastdiff_s(const char *dest, rsize_t dmax, const char *src, rsize_t *index)
Returns the index of the last character that is different between dest and src.