📄 trace.c
字号:
/*
* Copyright (C) 1999-2000 Computer & Communications Research Laboratories,
* Industrial Technology Research Institute
*/
/*
* trace.c
*/
#include "trace.h"
#include <time.h>
char logbuf[256];
FILE *logfile;
char* gettime()
{
static char logtime[128];
time_t ltime;
struct tm *now;
logtime[0]='\0';
time( <ime );
now = localtime( <ime );
strftime(logtime, 128, "%m%d_%H%M%S", now);
return logtime;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -