BITIO.H
上传用户:bjghjy
上传日期:2007-01-07
资源大小:379k
文件大小:1k
- #ifndef _BITIO
- #define _BITIO
- #include <stdio.h>
- typedef struct tag_bit_file
- {
- FILE *file;
- unsigned char mask;
- int rack;
- int pacifier_counter;
- }BIT_FILE;
- BIT_FILE *OpenInputBitFile(char *filename);
- BIT_FILE *OpenOutputBitFile(char *filename);
- void OutputBit(BIT_FILE *bit_file,int bit);
- void OutputBits(BIT_FILE *bit_file,unsigned long code,int count);
- int InputBit(BIT_FILE *bit_file);
- unsigned long InputBits(BIT_FILE *bit_file,int count);
- void CloseInputBitFile(BIT_FILE *bit_file);
- void CloseOutputBitFile(BIT_FILE *bit_file);
- void FilePrintBinary(FILE *file,unsigned int code,int bits);
- #endif