- 博客(2)
- 收藏
- 关注
原创 C/C++简单日志写入
C/C++日志写入,简单demo代码测试代码测试结果 简单记录怎么写日志文件 代码 void Write(int level, const char* file, const char*format, ...) { if (NULL == file || NULL == format) { return; } FILE* fp = fopen(file, "wb+"); if (NULL == fp) { return; } //先写入等级 日期 也可以选择一起写入 time_t
2021-07-13 14:50:36
395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人