| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflbits.h" void bits_destroy ( BITS *bits)
Releases all memory used by a bitstring and deletes the bitstring. Do not refer to the bitstring after calling this function.
{ 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); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |