...
| Code Block | ||
|---|---|---|
| ||
/*
* The abort_handler_s() function writes a message on the
* standard error stream then calls the abort() function.
*/
set_constraint_handler(abort_handler_s);
/*...*/
/* Returns zero on success */
errno_t function(char *dst1){
char src1[100] = "hello";
strcpy_s(dst1, sizeof(dst1), src1);
/* Because handleabort_handler_errorss() never returns,
we only get here if strcpy_s() succeeds. */
/* ... */
return 0;
}
|
...