1ASSERT(3X)                                                          ASSERT(3X)
2
3
4

NAME

6       assert - program verification
7

SYNOPSIS

9       #include <assert.h>
10
11       assert (expression)
12

DESCRIPTION

14       Assert  is  a macro that indicates expression is expected to be true at
15       this point in the program.  It causes an exit(2) with a diagnostic com‐
16       ment  on  the  standard output when expression is false (0).  Compiling
17       with the cc(1) option -DNDEBUG effectively deletes assert from the pro‐
18       gram.
19

DIAGNOSTICS

21       `Assertion  failed:  file  f  line  n.'  F is the source file and n the
22       source line number of the assert statement.
23
24
25
26                                                                    ASSERT(3X)
Impressum