b1240.h
来自「计费系统中的S1240交换机脱机读磁带程序」· C头文件 代码 · 共 72 行
H
72 行
#ifndef __B1240_H
#define __B1240_H
#include <stdio.h>
#include <stdlib.h>
#include <mem.h>
#include <conio.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <io.h>
#include <dos.h>
#define FALSE -1
#define TRUE 0
#define DataPath "\\BILL1240\\DATA\\"
#define CommPath "\\BILL1240\\BIN\\"
#define DataName "S1240BIL.ZX"
#define OutName "BILL1240.TXT"
#define ErrName "BILL1240.ERR"
#define LenBlock 2048
#define PhoneLength 7
#define ERR_NoFile -1
#define ERR_ReadFail -2
#define ERR_SaveFail -3
#define ERR_TrunFail -4
typedef struct {
char CallingNo[8];
char arcNo[9];
char CalledNo[17];
char startTime[7];
char endTime[7];
char dayInWork[3];
char timeLen[8];
char MinCount[7];
char outGoing[6]; //I don't Know What's Mean?!
char startDate[6];
char endDate[6];
char RATE[7]; //Don't Used
char FEE[9]; //Used It By Other Programe
char FLAG; //Used It By Other Programe
} PhoneStruct;
unsigned char DiskBuffer[LenBlock];
char FileName[12];
FILE *OutFile;
FILE *ErrFile;
int inFile;
unsigned long ulRecordCount;
int iFile;
unsigned long ulBlockCount;
unsigned long ulNoRecordCount;
struct date DateNow;
struct tm ThisTime;
void Message(char *Message);
int RunTruns(void);
int OpenFile(void);
int getHigh(int ch);
int getLow(int ch);
int getPhoneStruct(unsigned char *p,PhoneStruct *pps);
int ReadData(int finFile,unsigned char *p);
int SavePhoneStruct(PhoneStruct *pps);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?