📄 writerec.c
字号:
void WriteRec(FILE * fp, DBF * dbf_name, RecUnion * rec)
{
int i = 0;
while (i < dbf_name->dhFieldCount)
{
switch (dbf_name->dbf_struct[i].dhFieldType) {
case Int:
fwrite(&rec[i].intType,sizeof(int),1,fp);
break;
case Float:
fwrite(&rec[i].floatType,sizeof(float),1,fp);
break;
case String:
fwrite(rec[i].string,dbf_name->dbf_struct[i].dhFieldLen,1,fp);
break;
}
i++;
}
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -