| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

bits_clear

#include "sflbits.h"
int
bits_clear (
    BITS *bits,
    long bit)

Synopsis

Clears the specified bit in the bitmap. Returns ?

Source Code - (sflbits.c)

{
    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, &section, &bit_nbr);
    get_section (bits, index, section, section_data, TRUE);
    section_data [bit_nbr / 8] &= 255 - (1 << (bit_nbr % 8));
    put_section (bits, index, section, section_data);

    return 0;
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation