diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1998-11-25 04:33:46 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1998-11-25 04:33:46 +0000 |
commit | 9baa9119493335c80ca32188459fe1929c86194f (patch) | |
tree | 287fd141913ade8f9c225503ae2424ea8448ebbb /share/man/man3/bitstring.3 | |
parent | 79ddf2564e94d41fa10ea72aa2139b5c36a89ec9 (diff) |
share/man/man3 man page repairs
Diffstat (limited to 'share/man/man3/bitstring.3')
-rw-r--r-- | share/man/man3/bitstring.3 | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/share/man/man3/bitstring.3 b/share/man/man3/bitstring.3 index 696c1a25339..ccd2db6d100 100644 --- a/share/man/man3/bitstring.3 +++ b/share/man/man3/bitstring.3 @@ -54,8 +54,8 @@ .Fd #include <bitstring.h> .Ft bitstr_t * .Fn bit_alloc "int nbits" -.Fn bit_decl "bit_str name" "int nbits" .Fn bit_clear "bit_str name" "int bit" +.Fn bit_decl "bit_str name" "int nbits" .Fn bit_ffc "bit_str name" "int nbits" "int *value" .Fn bit_ffs "bit_str name" "int nbits" "int *value" .Fn bit_nclear "bit_str name" "int start" "int stop" @@ -66,46 +66,46 @@ .Sh DESCRIPTION These macros operate on strings of bits. .Pp -The macro +The .Fn bit_alloc -returns a pointer of type -.Dq Fa "bitstr_t *" +macro returns a pointer of type +.Fa "bitstr_t *" to sufficient space to store .Fa nbits bits, or .Dv NULL if no space is available. .Pp -The macro +The .Fn bit_decl -allocates sufficient space to store +macro allocates sufficient space to store .Fa nbits bits on the stack. .Pp -The macro +The .Fn bitstr_size -returns the number of elements of type +macro returns the number of elements of type .Fa bitstr_t necessary to store .Fa nbits bits. This is useful for copying bit strings. .Pp -The macros +The .Fn bit_clear and .Fn bit_set -clear or set the zero-based numbered bit +macros clear or set the zero-based numbered bit .Fa bit , in the bit string .Ar name . .Pp The -.Fn bit_nset -and .Fn bit_nclear +and +.Fn bit_nset macros -set or clear the zero-based numbered bits from +clear or set the zero-based numbered bits from .Fa start to .Fa stop @@ -134,9 +134,9 @@ If no bits are set, the location referenced by .Fa value is set to \-1. .Pp -The macro +The .Fn bit_ffc -stores in the location referenced by +macro stores in the location referenced by .Fa value the zero-based number of the first bit not set in the array of .Fa nbits @@ -177,7 +177,5 @@ make_lpr_available() .Sh SEE ALSO .Xr malloc 3 .Sh HISTORY -The -.Nm bitstring -functions first appeared in +The bit-string functions first appeared in .Bx 4.4 . |