- Function
Test a condition and possibly abort.
- Header
- Declaration
void assert (int cond);
- Description
assert
is a macro that expands to aid
statement. If the condition evaluates t zero (false), assert prints a message on stderr and aborts the program.- Limits
- The function is actually a macro.
- Availability
ISO 9899
- See also
- Example
None.