#ifndef LOG_H
#define LOG_H
#include <stdarg.h>
// 用于记录程序的行为
void logcmd(char *fmt,...);
// 打开日志文件
int init_logfile(char *filename);
// 将程序运行日志记录到文件
int logfile(char *file,int line,char *msg);
#endif
Linux平台下基于BitTorrent应用层协议的下载软件开发--日志管理模块(log.h)
最新推荐文章于 2024-10-03 23:24:33 发布