File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / bitset.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (11 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

#ifndef _BITSET_H_
#define _BITSET_H_

#include <stddef.h>

typedef struct {
	size_t *bits;
	size_t nbits;
} bitset;

bitset *bitset_init(size_t nbits);
void bitset_reset(bitset *set);
void bitset_free(bitset *set);

void bitset_clear_bit(bitset *set, size_t pos);
void bitset_set_bit(bitset *set, size_t pos);
int bitset_test_bit(bitset *set, size_t pos);

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>