assert.h

void assert(expression)

For display error when expression is FALSE

expression evaluates to TRUE, assert() does nothing.

expression evaluates to FALSE, assert() displays an error message on stderr

(standard error stream to display error messages and diagnostics) and aborts program execution.

Last updated