32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 72 const char *src, rsize_t *index)
101 if (dmax > RSIZE_MAX_STR) {
113 while (*dest && *src && dmax) {
116 *index = (uint32_t)(dest - rp);
errno_t strfirstsame_s(const char *dest, rsize_t dmax, const char *src, rsize_t *index)
Returns the index of the first character that is the same between dest and src.
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.