- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 C语言写入日志功能
自己写的 日志函数 编译调试通过 使用方法 my_printf(“send mqtt pag ok”); void my_printf(const char *str)//日志函数 { struct timeval tv; gettimeofday(&tv,NULL);//获取1970-1-1到现在的时间结果保存到tv中 uint64_t sec=tv.tv_sec; uint64_t min=tv.tv_sec/60; struct tm cur_tm;//保存转换后的时间结果 localtim
2020-12-02 15:26:45
271
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人