DESCRIPTION¶
str1
and str2
are both bitstrings. The result of the function is a bitstring with the binary-or of str1
and str2
, ie. a string in which a bit is set if the corresponding bit in str1
or str2
(or both) is set.
USAGE¶
string s1, s2, s3;
s1 = set_bit("", 3);
s1 = set_bit(s1, 15);
// s1 is "( ("
s2 = set_bit("", 3);
s2 = set_bit(s2, 4);
// s2 is "8"
s3 = or_bits(s1, s2);
// s3 is now "8 (", ie. a bitstring with bits 3, 4 and 15 set.