Lots of man pages.
This commit is contained in:
parent
08df2a433e
commit
cfa37a7b11
152 changed files with 25407 additions and 148 deletions
25
man/man3/assert.3
Normal file
25
man/man3/assert.3
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
.TH ASSERT 3
|
||||
.SH NAME
|
||||
assert \- check program invariants
|
||||
.SH SYNOPSIS
|
||||
.B #include <u.h>
|
||||
.br
|
||||
.B #include <libc.h>
|
||||
.PP
|
||||
.B
|
||||
#define assert if(cond);else _assert("cond")
|
||||
.PP
|
||||
.B
|
||||
void _assert(int cond)
|
||||
.SH DESCRIPTION
|
||||
.I Assert
|
||||
is a preprocessor macro that
|
||||
(via
|
||||
.IR _assert )
|
||||
prints a message and calls
|
||||
.I abort
|
||||
when
|
||||
.I cond
|
||||
is false.
|
||||
.SH SOURCE
|
||||
.B /sys/src/libc/port/_assert.c
|
||||
Loading…
Add table
Add a link
Reference in a new issue