parse/bitset.c
/* Zeroes all values in a bit set */
Zeroes all values in a bit set
Zeroes all values in a bit set
Bitset *bsclear(Bitset *bs)
{
    size_t i;
    if (!bs)
        return mkbs();
    for (i = 0; i < bs->nchunks; i++)
        bs->chunks[i] = 0;
    return bs;
}
Bitset * bsclear ( Bitset * bs ) { size_t i ; if ( ! bs ) return mkbs ( ) ; for ( i = 0 ; i < bs -> nchunks ; i ++ ) bs -> chunks [ i ] = 0 ; return bs ; }
Zeroes all values in a bit set
Zeroes all values in a bit set