From 711594636704defae873be1a355a292505585afd Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 25 Apr 2026 21:07:28 -0400 Subject: docs: Added UNIX V10 Manuals --- static/v10/man3/assert.3 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 static/v10/man3/assert.3 (limited to 'static/v10/man3/assert.3') diff --git a/static/v10/man3/assert.3 b/static/v10/man3/assert.3 new file mode 100644 index 00000000..973b6d36 --- /dev/null +++ b/static/v10/man3/assert.3 @@ -0,0 +1,38 @@ +.TH ASSERT 3X +.CT 2 debug_tune +.SH NAME +assert \(mi assertion checking +.SH SYNOPSIS +.B #include +.PP +.B void assert(expression); +.SH DESCRIPTION +.PP +.I Assert +is a macro that indicates +.I expression +is expected to be nonzero at this point in the program. +It causes an +.IR abort (3) +with a diagnostic comment on the standard output +when +.I expression +is zero. +Compiling with the +.IR cc (1) +option +.B -DNDEBUG +effectively makes the expression always nonzero. +.SH DIAGNOSTICS +`Assertion failed: file +.I f +line +.I n', +where +.I f +is the source file and +.I n +the source line number +of the +.I assert +statement. -- cgit v1.2.3