C
文章平均质量分 75
rainscale
慧极必伤,情深不寿。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
double free or corruption
double free or corruption 先看main.c代码: #include #include #define DEBUG() printf("%s:%d\n", __FILE__, __LINE__); fflush(stdout); int main(void) { void* p = malloc(100); DEB原创 2015-11-27 13:52:12 · 805 阅读 · 0 评论 -
c汇总
1.获取文件长度 方法一: FILE* fp; fp = fopen(const char* filename, "rb"); fseek(fp, 0, SEEK_END); // fseek(fp, SEEK_SET, SEEK_END); size_t sz = (size_t) ftell(fp); fclose(fp); 方法二: int fd = open(const c原创 2016-04-28 19:23:12 · 1192 阅读 · 0 评论
分享