All pastes #403349 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-20 09:16 UTC
rendered paste body
#include "mowgli.h"

int main(int argc, char *argv[]) {
        mowgli_bitvector_t *bv = mowgli_bitvector_new(128);

        mowgli_bitvector_set(bv, 63, TRUE);
        if (mowgli_bitvector_get(bv, 63) == FALSE)
        {
                printf("fail\n");
                return -1;
        }

        mowgli_bitvector_set(bv, 72, TRUE);
        if (mowgli_bitvector_get(bv, 72) == FALSE)
        {
                printf("fail\n");
                return -1;
        }

        if (mowgli_bitvector_get(bv, 70) == TRUE)
        {
                printf("fail\n");
                return -1;
        }

        return 0;
}