⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iso8583.h

📁 在SCO UNIX制定界面程序 可根据文件配制菜单,而不必修改源程序,非常方便
💻 H
字号:
#ifndef ISO8583_H_
#define ISO8583_H_

struct	ISO_8583 {		/* ISO 8583 Message Structure Definitions */
	int    len;		/* data element max length */
	unsigned char	 type;	 /* bit 0--x, bit 1--n, bit 2--z bit 3--b*/
	unsigned char	 flag;	 /* length field length */
};

struct len_str {
	short  len;
	char   *str;
};

struct data_element_flag {
	short bitf;
	short len;
	char  *addr;
};

typedef struct	{
	struct	data_element_flag f[128];
	short	off;
	char	dbuf[1024];
	char	message_id[10];
} ISO_data;

struct element_struc {
	short bitno;	       /* element no */
	short type;	       /* 0--default value, 1,2--process function */
	short len;	       /* when type=0, len=length of defaule value */
	void  *pointer;        /* pointer of value or process function */
};

struct	trans_bitmap_struc {
	short trans_type;		 /* transaction type */
	char  message_id[10];
	short element_number;		 /* number of elememts */
	struct element_struc *element;	 /* transaction element ally */

};

int strtoiso(char *, ISO_data *);
int isotostr(char *, ISO_data *);
int getbit(ISO_data *, int, char *);
int setbit(ISO_data *, int, char *, int);
void clearbit(ISO_data *);
void asc_to_bcd(unsigned char *, unsigned char *, int, unsigned char);
void bcd_to_asc(unsigned char *, unsigned char *, int, unsigned char);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -