摘要:
实现代码实例程序代码:#include <stdio.h>#include <stdlib.h>#include <sys/types.h>/***** cplusplus *****/#if 0#include <iostream> using namespace std;#endif// 得到指定地址上的一个字节或字#define MEM_B(x) (*((byte *)(x))) #define MEM_W(x) (*((word *)(x)))// 得到一个field在结构体(struct)中的偏移量#define FPOS(type, 阅读全文