求助一个c语言问题
请根据http://www.文中的描述,编写c程序解析下面的字符串,提示:该字符串的结构和iso8583类似,但是一些域的长度和编码和iso8583有区别,具体的域的描述见豆丁中的文档。
需解析的字符串(本字符串为hex格式,没有报文头,直接从消息类型域开始):
[0x30][0x32][0x30][0x30][0x30][0x38][0x40][0x81][0x80][0xc1][0x80][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x00][0x01][0x30][0x30][0x31][0x31][0x30][0x30][0x30][0x30][0x30][0x30][0x30][0x30][0x30][0x38]
[0x36][0x34][0x30][0x30][0x31][0x32][0x35][0x38][0x35][0x34][0x30][0x39][0x33][0x36][0x35][0x34][0x30]
[0x37][0x32][0x30][0x39][0x34][0x30][0x30][0x30][0x30][0x30][0x38][0x30][0x30][0x30][0x34][0x39][0x39]
[0x39][0x39][0x30][0x38][0x30][0x30][0x30][0x34][0x39][0x39][0x39][0x39][0x34][0x36][0x31][0x38][0x30]
[0x30][0x30][0x31][0x38][0x39][0x38][0x33][0x34][0x31][0x38][0x35][0x39][0x39][0x38][0x30][0x30][0x31]
[0x38][0x31][0x30][0x36][0x43][0x50][0x31][0x38][0x30][0x36][0x31][0x33][0x34][0x31][0x38][0x30][0x30]
[0x39][0x35][0x34][0x35][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x30][0x31][0x38][0x38][0x38][0x38]
[0x38][0x38][0x38][0x38][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x39]
[0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0x39][0xd2][0xf8][0xc9][0xcc]
[0xd1][0xcc][0xb2][0xdd][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20]
[0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20][0x20]
[0x20][0x20][0x31][0x32][0x33][0x34][0x23][0x31][0x35][0x36][0xad][0x89][0x26][0xdf][0xc9][0x8e][0x4c][0x48]
--
[ 本帖最后由 火遁 于 2011-10-14 18:11 编辑 ]