Return to bitset.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src |
1.4.33
1: #ifndef _BITSET_H_ 2: #define _BITSET_H_ 3: 4: #include <stddef.h> 5: 6: typedef struct { 7: size_t *bits; 8: size_t nbits; 9: } bitset; 10: 11: bitset *bitset_init(size_t nbits); 12: void bitset_reset(bitset *set); 13: void bitset_free(bitset *set); 14: 15: void bitset_clear_bit(bitset *set, size_t pos); 16: void bitset_set_bit(bitset *set, size_t pos); 17: int bitset_test_bit(bitset *set, size_t pos); 18: 19: #endif