ignore_handler_s
Go Up to stdlib.h Index
Header File
stdlib.h
Category
Run-time constraint handling
Prototype
void ignore_handler_s(const char * restrict msg, void * restrict ptr, errno_t error);
Description
The ignore_handler_s function can be used as the parameter for the set_constraint_handler_s function. It ignores the run-time violation and just returns.
Use ignore_handler_s when you want to ignore run-time constraint violations.
Return Value
ignore_handler_s has no return value.
Example
#include <string.h> #include <stdio.h> #include <stdlib.h> int main(void) { char* string = NULL; set_constraint_handler_s(ignore_handler_s); gets_s(string, 5); //nothing will be output to stdout. return 0; }