ASSERT(3) — C LIBRARY FUNCTIONS
NAME
assert − program verification
SYNOPSIS
#include <assert.h>
assert(expression)
DESCRIPTION
assert() is a macro that indicates expression is expected to be true at this point in the program. It exits (see exit(2) with a diagnostic comment on the standard output when expression is false (0). Compiling with the cc(1V) option −DNDEBUG effectively deletes assert() from the program.
SEE ALSO
DIAGNOSTICS
Assertion failed: file f line n
f is the source file and n the source line number of the assert() statement.
Sun Release 4.0 — Last change: 6 October 1987