bit.h
MudCon/src/bit.h · 890 B
From the archive MudCon.tar.gz
Download the archive « Back to the archive contents
/* Bit.h. This holds extern structure definitions (Basicly, prototypes for tables) */
extern const struct bit_type common_table[];
extern const struct bit_type channel_table[];
struct bit_type
{ char *name;
char *PrntVal;
int bit;
};
/* These gotta be below bit_type declaration */
int bit_lookup args((const struct bit_type *bit_table, int max_bit, const char *name ));
int PrntVal_lookup args((const struct bit_type *bit_table, int max_bit, const char *name ));
char * bit_name args((const struct bit_type *bit_table, int bit ));
char * bit_PrntVal args((const struct bit_type *bit_table, int bit ));
void save_flags args((const struct bit_type *bit_table, FILE *fp, int max_int, int *bit_array ));
void load_flags args((const struct bit_type *bit_table, FILE *fp, int max_int, int *bit_array ));
void clear_bits args((int *bArray, int max_bit ));