Rusty's code
@Dying in the rain.
摘要: 用到编程改变文件某个字段的值,结果发现此现象。上代码: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... 阅读全文
posted @ 2011-11-17 19:27 Rusty's code 阅读(4619) 评论(0) 推荐(1) 编辑