util.h

来自「wince平台下的一个录音机」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef _UTIL_H_
#define _UTIL_H_

#include <time.h>
#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

void msgTime(time_t* ret_time, struct tm* ret_tm);
void msgPrn(const char *msg_type, char* fmt, va_list ap);
void errMsg(char* fmt, ...);
void wrnMsg(char* fmt, ...);
void infMsg(char* fmt, ...);
void dbgMsg(char* fmt, ...);
void wrnMsg(char* fmt, ...);
/*
 * pub func
 * get date-time string 
 */
int get_date_time_string(char *buf);
const char *get_cur_time();
int mklic(const char *dead_time);
int chklic(const char *time);
int init_log(const char *name);
int disinit_log();

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?