os.h
来自「本源码为移动公司话费查询中间件TUXEDO使用的实例」· C头文件 代码 · 共 41 行
H
41 行
/*****************************************
File: OS.h
date: 2001.7.25
Contains: OS utility functions. Memory allocation, time, etc.
*/
#ifndef _OS_H_LINYOUHAI
#define _OS_H_LINYOUHAI
#include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <string.h>
class OS
{
public:
//call this before calling anything else
static void Initialize();
static char* GetSysDateTime(char* tmDateTime);
static char* GetSysDate(char* tmDate,char nFlag = 0);
static int GetYear();
static int GetMonth();
static int GetDay();
static void GetTime(struct tm* pSysTime);
};
#endif //#define _OS_H_LINYOUHAI
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?