| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflbits.h" int bits_set ( BITS *bits, long bit)
Sets the specified bit in the bitmap. Returns ?
{ int index, /* Number of index block */ section; /* Number of section in index */ dbyte bit_nbr; /* Number of bit in section */ ASSERT (bits); locate_bit (bits, bit, &index, §ion, &bit_nbr); get_section (bits, index, section, section_data, TRUE); section_data [bit_nbr / 8] |= 1 << (bit_nbr % 8); put_section (bits, index, section, section_data); return 0; }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |