4.3BSD-UWisc/man/cat3/assert.3

Compare this file to the similar file:
Show the results in this format:




ASSERT(3)           UNIX Programmer's Manual            ASSERT(3)



NAME
     assert - program verification

SYNOPSIS
     #include <assert.h>

     assert(expression)

DESCRIPTION
     _A_s_s_e_r_t is a macro that indicates _e_x_p_r_e_s_s_i_o_n is expected to
     be true at this point in the program.  It causes an _e_x_i_t(2)
     with a diagnostic comment on the standard output when
     _e_x_p_r_e_s_s_i_o_n is false (0).  Compiling with the _c_c(1) option
     -DNDEBUG effectively deletes _a_s_s_e_r_t from the program.

DIAGNOSTICS
     `Assertion failed: file _f line _n.' _F is the source file and
     _n the source line number of the _a_s_s_e_r_t statement.





































Printed 12/27/86          May 12, 1986                          1