Skip to content
willemtPublic

About

A bitfield ADT, used for easily managing bits, written in C under a BSD licence.

Resources

Stars

16 stars

Watchers

2 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

How does it work?

/* allocate bitfield of 100 bits */
bitfield_t* bf = bitfield_new(100);

/* Mark 77th bit as on. */
bitfield_mark(bf, 77);

/* Mark 50th bit as off. */
bitfield_unmark(bf, 50);

/* Test if the 77th bit is marked */
if (bitfield_is_marked(bf, 77))
{
    printf("77th bit is marked\n");
}

Building

$make

About

A bitfield ADT, used for easily managing bits, written in C under a BSD licence.

Resources

Stars

16 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages