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

 

bits_destroy

#include "sflbits.h"
void
bits_destroy (
    BITS *bits)

Synopsis

Releases all memory used by a bitstring and deletes the bitstring. Do not refer to the bitstring after calling this function.

Source Code - (sflbits.c)

{
    int
        block_nbr;                      /*  Bitstring block number           */

    ASSERT (bits);

    /*  Free all blocks allocated to bitmap                                  */
    for (block_nbr = 0; block_nbr < bits-> block_count; block_nbr++)
        mem_free (bits-> block [block_nbr]);

    mem_free (bits);
}

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