NAME
test_bit - test a bit in a bitstring
SYNOPSIS
int test_bit(string str, int b)
DESCRIPTION
Return the status of bit b in bitstring str. The default status of
a bit is 0.
Config.h must define MUDOS_BITSTRING for bitstring functions to
exist.
ERROR
If b < 0 an error will occur. The resulting bitstring must also be
smaller than MAX_STRING_SIZE.
NOTE
Bitstrings are currently on byte level. This may change in the
future, so do NOT make ANY assumptions on bitstring data.
SEE ALSO
efun/bitstrings/