32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 155 strtok_s(
char * restrict dest, rsize_t * restrict dmax,
const char * restrict src,
char ** restrict ptr)
158 #ifndef STRTOK_DELIM_MAX_LEN 159 #define STRTOK_DELIM_MAX_LEN 16 179 if (*dmax > RSIZE_MAX_STR) {
207 while (*dest !=
'\0' && !ptoken) {
212 "strtok_s: dest is unterminated",
223 while (*pt !=
'\0') {
228 "strtok_s: src is unterminated",
250 if (ptoken == NULL) {
258 while (*dest !=
'\0') {
263 "strtok_s: dest is unterminated",
270 while (*pt !=
'\0') {
275 "strtok_s: src is unterminated",
#define STRTOK_DELIM_MAX_LEN
char * strtok_s(char *restrict dest, rsize_t *restrict dmax, const char *restrict src, char **restrict ptr)
A sequence of calls to the strtok_s function breaks the string pointed to by dest into a sequence of ...
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.