zbtest.3 - libzahl - big integer library | |
git clone git://git.suckless.org/libzahl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
zbtest.3 (475B) | |
--- | |
1 .TH ZBTEST 3 libzahl | |
2 .SH NAME | |
3 zbtest - Test a bit in a big integer | |
4 .SH SYNOPSIS | |
5 .nf | |
6 #include <zahl.h> | |
7 | |
8 int zbtest(z_t \fIa\fP, size_t \fIindex\fP); | |
9 .fi | |
10 .SH DESCRIPTION | |
11 .B zbtest | |
12 returns whether the bit with the specified | |
13 .I index | |
14 is set in | |
15 .IR a . | |
16 .SH RETURN VALUE | |
17 .B zbtest | |
18 returns 1 if the bit is set, or 0 otherwise. | |
19 .SH SEE ALSO | |
20 .BR zbset (3), | |
21 .BR zand (3), | |
22 .BR zor (3), | |
23 .BR zxor (3), | |
24 .BR znot (3), | |
25 .BR zlsh (3), | |
26 .BR zrsh (3), | |
27 .BR zsplit (3), | |
28 .BR zlsb (3), | |
29 .BR zbits (3) |