摘要:
用到编程改变文件某个字段的值,结果发现此现象。上代码:int writepcap(char *filename,int begin,int len,char *content){ if(!pcap || !content) return -1; FILE *fp = NULL; fp = fopen(filename,"ab");//rb+ if(!fp) return -2; if(-1 == fseek(fp,begin,SEEK_SET)) { fclose(fp); return -3; } //print... 阅读全文