assert()

Syntax
  #include <assert.h>

  
  void assert(int expr);

  
Description

The assert() macro indicates that expression expr is expected to be true at this point in the program. If expr is false (0), assert() halts the program. Compiling with option -DNDEBUG or placing the preprocessor control statement #define NDEBUG before the #include <assert.h> statement effectively deletes all assertions from the program.

Return

Nothing

See also

abort()

exit()