On Sun, 17 Nov 1996, Bruce, Ray, Phil wrote:
> What does the ASSERT command do?
>
> *Frostiana* BETA
> http://www.durand.net/Frostiana
> telnet://206.31.114.50:5000
ASSERT(3) BSD Programmer's Manual
ASSERT(3)
NAME
assert - expression verification macro
SYNOPSIS
#include <assert.h>
assert(expression);
DESCRIPTION
The assert() macro tests the given expression and if it is false, the
calling process is terminated. A diagnostic message is written tothe
stderr and the function _exit(2) is called effectively terminatingthe
program.
If expression is true, the assert() macro does nothing.
The assert() macro may be removed at compile time with the -NDEBUGop-
tion, see cc(1).
DIAGNOSTICS
The following diagnostic message is written to stderr if expressionis
false:
"assertion \"%s\" failed: file \"%s\", line %d0, \
"expression", __FILE__, __LINE__);
HISTORY
A assert macro appeared in Version 6 AT&T UNIX.
*******************************************************************
* Ron Hensley ron@dmv.com *
* Systems Administrator http://www.dmv.com/~ron *
* PGP Key at WWW Page *
* DelMarVa OnLine 749-7898 Ext. 403 *
*******************************************************************
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST