man(1) Manual page archive


     ASSERT(3X)                                             ASSERT(3X)

     NAME
          assert - assertion checking

     SYNOPSIS
          #include <assert.h>

          void assert(expression);

     DESCRIPTION
          Assert is a macro that indicates expression is expected to
          be nonzero at this point in the program.  It causes an
          abort(3) with a diagnostic comment on the standard output
          when expression is zero.  Compiling with the cc(1) option
          -DNDEBUG effectively makes the expression always nonzero.

     DIAGNOSTICS
          `Assertion failed: file f line n', where f is the source
          file and n the source line number of the assert statement.