BIT_FILE * OpenOutputBitFile( char *name );
补充:函数名前有个星号(*),是什么意思?
完整源代码:
/**************开始 BITIO.H************************/
#ifndef _BITIO_H
#define _BITIO_H
#include <stdio.h>
typedef struct bit_file{
FILE *file;
unsigned char mask;
int rack;
int pacifier_counter;
} BIT_FILE;
#ifdef _STDC_
BIT_FILE * OpenInputBitFile( char *name );
BIT_FILE * OpenOutputBitFile( char *name );
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 bit_count );
void CloseInputBitFile( BIT_FILE *bit_file );
void CloseOutputBitFile( BIT_FILE *bit_file );
void FilePrintBinary( FILE *file, unsigned int code, int bits );
#else /*_STDC_*/
BIT_FILE * OpenInputBitFile();
BIT_FILE * OpenOutputBitFile();
void OutputBit();
void OutputBits();
int InputBit();
unsigned long InputBits();
void CloseInputBitFile();
void CloseOutputBitFile();
void FilePrintBinary();
#endif /*_STDC_*/
#endif /*_BITIO_H*/
/*************** 结束BITIO.H********************/
>> 本文固定链接: http://www.vcgood.com/archives/2399
指向结构体实例BIT_FILE的一个指针
谢谢楼上的