Error handling
From cppreference.com
< c
Contents |
[edit] Error numbers
Defined in header
<errno.h> | |
macro which expands to POSIX-compatible thread-local error number variable (macro variable) | |
macros for standard POSIX-compatible error conditions (macro constant) |
[edit] Assertions
Defined in header
<assert.h> | |
aborts the program if the user-specified condition is not true. May be disabled for release builds (function macro) | |
(C11)(removed in C23) |
issues a compile-time diagnostic if the value of a constant expression is false (keyword macro) |
Bounds checkingThe standard library provides bounds-checked versions of some existing functions (gets_s, fopen_s, printf_s, strcpy_s, wcscpy_s, mbstowcs_s, qsort_s, getenv_s, etc). This functionality is optional and is only available if __STDC_LIB_EXT1__ is defined. The following macros and functions support this functionality.
|