Header: assert.H
Syntax:
void assert
(
int exp
);
This function checks the value of exp. If it is zero (ie false) then the program aborts instantly with a message giving "exp" and the current file and line within that file. It would normally be used with a condition as exp,
for example:
assert(a==b);
would abort if a did not equal b.
|
|
|