我正在嵌入式微控制器中工作,我必须将多种数据读/写到非易失性RAM(NVRAM)中。我想,以避免不必编写单独的读/写功能为每个值在NVRAM中存储这样的: void Write_Value1(int value);
int Read_Value1(void);
void Write_Value2(unsigned long value);
unsigned long Read_Value2(
对于controling结构成员和力量程序员使用的getter/setter函数,我想写这样的代码如下模式: /* Header file: point.h */
...
/* define a struct without full struct definition. */
struct point;
/* getter/setter functions. */
int point