Currently At: Programming Reference > C Reference > Other standard C functions > assert()

assert()


Syntax:
#include <assert.h>
void assert( int exp );


Description:
The assert() macro is used to test for errors. If exp evaluates to zero, assert() writes information to STDERR and exits the program. If the macro NDEBUG is defined, the assert() macros will be ignored.

Related Topics:
abort()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions