File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / bitset.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
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

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