Deleted Added
full compact
bitstring.3 (68854) bitstring.3 (70466)
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Paul Vixie.
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 18 unchanged lines hidden (view full) ---

27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" @(#)bitstring.3 8.1 (Berkeley) 7/19/93
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Paul Vixie.
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 18 unchanged lines hidden (view full) ---

27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" @(#)bitstring.3 8.1 (Berkeley) 7/19/93
35.\" $FreeBSD: head/share/man/man3/bitstring.3 68854 2000-11-17 11:44:16Z ru $
35.\" $FreeBSD: head/share/man/man3/bitstring.3 70466 2000-12-29 09:18:45Z ru $
36.\"
37.Dd July 19, 1993
38.Dt BITSTRING 3
39.Os BSD 4
40.Sh NAME
41.Nm bit_alloc ,
42.Nm bit_clear ,
43.Nm bit_decl ,

--- 111 unchanged lines hidden (view full) ---

155.Pp
156The arguments to these macros are evaluated only once and may safely
157have side effects.
158.Sh EXAMPLES
159.Bd -literal -offset indent
160#include <limits.h>
161#include <bitstring.h>
162
36.\"
37.Dd July 19, 1993
38.Dt BITSTRING 3
39.Os BSD 4
40.Sh NAME
41.Nm bit_alloc ,
42.Nm bit_clear ,
43.Nm bit_decl ,

--- 111 unchanged lines hidden (view full) ---

155.Pp
156The arguments to these macros are evaluated only once and may safely
157have side effects.
158.Sh EXAMPLES
159.Bd -literal -offset indent
160#include <limits.h>
161#include <bitstring.h>
162
163...
163\&...
164#define LPR_BUSY_BIT 0
165#define LPR_FORMAT_BIT 1
166#define LPR_DOWNLOAD_BIT 2
164#define LPR_BUSY_BIT 0
165#define LPR_FORMAT_BIT 1
166#define LPR_DOWNLOAD_BIT 2
167...
167\&...
168#define LPR_AVAILABLE_BIT 9
169#define LPR_MAX_BITS 10
170
171make_lpr_available()
172{
173 bitstr_t bit_decl(bitlist, LPR_MAX_BITS);
174 ...
175 bit_nclear(bitlist, 0, LPR_MAX_BITS - 1);

--- 15 unchanged lines hidden ---
168#define LPR_AVAILABLE_BIT 9
169#define LPR_MAX_BITS 10
170
171make_lpr_available()
172{
173 bitstr_t bit_decl(bitlist, LPR_MAX_BITS);
174 ...
175 bit_nclear(bitlist, 0, LPR_MAX_BITS - 1);

--- 15 unchanged lines hidden ---