extiso.h
来自「在SCO UNIX制定界面程序 可根据文件配制菜单,而不必修改源程序,非常方便」· C头文件 代码 · 共 54 行
H
54 行
#ifndef EXTISO
#define EXTISO
struct IsoTable {
short len;
unsigned char type;
};
/*
* type field :
*
* bit 0 bit 1 : len type 00 Fixed Length
* 01 LL VAR
* 10 LLL VAR
* bit 2 : reversed
* bit 3 : data type 1 binary
* 0 other
* bit 4 : data type 1 bcd
* 0 other
* bit 5 : data type 1 C/D field
* 0 other
* bit 6 : fill type 1 fill with ' '
* 0 fill with '0'
* bit 7 : justify type 1 left justify
* 0 right justify
*/
struct Elements {
short bitf;
short len;
short off;
};
typedef struct {
unsigned char *dbuf;
short off;
short max_len;
char asc_msg;
char asc_var;
char msg_id[16];
struct Elements f[128];
struct IsoTable *isotable;
} IsoData;
void Init_Iso(IsoData *, unsigned char *, int, int, int, struct IsoTable *);
int Str_Iso(unsigned char *, IsoData *, int);
int Iso_Str(unsigned char *, IsoData *, int);
int Get_Bit(IsoData *, int, char *, int);
int Set_Bit(IsoData *, int, char *, int);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?