Category : C Source Code
Archive   : BITSET.ZIP
Filename : BITSET.H

 
Output of file : BITSET.H contained in archive : BITSET.ZIP

/* bitset.h include file to support the bitset package
*/

typedef void *bitset; /* abstracted type which hides the */
/* object's internal representation */

typedef int BOOLEAN;

bitset makebitset (unsigned); /* create a bitset */
BOOLEAN setbit (bitset, unsigned, unsigned); /* set a bit in the bitset */
BOOLEAN testbit (bitset, unsigned); /* test a bit in the bitset */
void clear_set (bitset); /* clear the bits in a bitset */
void compl_set (bitset); /* complement the bits in a bitset */
void union_set (bitset, bitset); /* OR the bits in two bitsets */
void intrsct_set (bitset, bitset); /* AND the bits in two bitsets */
void xor_set (bitset, bitset); /* XOR the bits in two bitsets */
void diff_set (bitset, bitset); /* DIFF the bits in two bitsets */
BOOLEAN equal_sets (bitset, bitset); /* ret TRUE if two bitsets are equal */
BOOLEAN in_set (bitset, bitset); /* ret TRUE if a bitset is a subset */
/* of another */



  3 Responses to “Category : C Source Code
Archive   : BITSET.ZIP
Filename : BITSET.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/