Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1V)

exit(2)

ASSERT(3)  —  C LIBRARY FUNCTIONS

NAME

assert − program verification

SYNOPSIS

#include <assert.h>

assert(expression)

DESCRIPTION

assert() is a macro that indicates expression is expected to be true at this point in the program.  It exits (see exit(2) with a diagnostic comment on the standard output when expression is false (0).  Compiling with the cc(1V) option −DNDEBUG effectively deletes assert() from the program. 

SEE ALSO

cc(1V) exit(2)

DIAGNOSTICS

Assertion failed: file f line n
f is the source file and n the source line number of the assert() statement. 

Sun Release 4.0  —  Last change: 6 October 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026