assert(expression)
assert() is a macro that indicates expression is expected to be true at this point in the program. If expression is false (0), it displays a diagnostic message on the standard output and exits (see exit.2v Compiling with the cc.1v option -DNDEBUG, or placing the preprocessor control statement
#define NDEBUG
before the ``#include <assert.h>'' statement effectively deletes assert() from the program.
The System V version of assert() calls abort.3 rather than exit().
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97