*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: isset | Section: 9 | Source: NetBSD | File: isset.9
SETBIT(9) FreeBSD Kernel Developer's Manual SETBIT(9) NAME setbit - macros related to bitmaps SYNOPSIS #include <sys/param.h> void setbit(array, x); void clrbit(array, x); int isset(array, x); int isclr(array, x); DESCRIPTION The setbit family of macros operate with bitmaps, also known as bit arrays. In a nutshell, setbit() sets the bit x in array, clrbit() clears it, isset() tests whether x is set, and isclr() returns 1 if x is not set. EXAMPLES The following example declares a buffer of 10 chars, treating it as an array of 80 bits: char buf[10]; ... setbit(buf, 12); /* set the fifth bit in the second byte */ SEE ALSO bitmap(3), bitstring(3) CAVEATS The number of valid bits in a given array is assumed to be multiple of CHAR_BIT, the number of bits for smallest object that is not a bit-field. FreeBSD 14.1-RELEASE-p8 December 4, 2012 FreeBSD 14.1-RELEASE-p8

Navigation Options