unionlog.h

来自「这是个通讯程序」· C头文件 代码 · 共 49 行

H
49
字号
#ifndef _UnionLogMDL#define _UnionLogMDL#include <stdio.h>#include <string.h>#include <errno.h>#define gUnionErrMsgIssureID		"00000000"#define gUnionErrMsgIssureName		"Union Error Message Issure"// The two following functions must be defined outside the UnionLogMDL.int UnionGetNameOfLogFile(char *NameOfLogFile);long UnionGetSizeOfLogFile();// *************************************************************// Anytime before calling functions of the UnionLogMDL the first time,// please call this function to connect to the UnionLogMDL.int UnionConnectLogMDL();// Anytime when not calling functions of the UnionLogMDL any more,// please call this function to disconnect to the UnionLogMDL.int UnionDisconnectLogMDL();int UnionGetSystemTime(char *strtime);int UnionGetSystemDate(char *strdate);int UnionGetSystemYear(char *stryear);int UnionGetFullSystemDate(char *strdate);int UnionGetSystemDateTime(char *datetime);int UnionGetFullSystemDateTime(char *datetime);FILE *UnionOpenLogFile();int UnionCloseLogFile(FILE *UnionLogfile);void UnionSystemErrLog(char *,...);void UnionUserErrLog(char *,...);void UnionSuccessLog(char *,...);void UnionLog(char *,...);void UnionNoTimeLog(char *,...);void WriteMemory(FILE *fp,unsigned char *pBuffer,int iBufLen);void UnionMemErrLog(char *pMessage,unsigned char *pBuffer,int iBufLen);void UnionMemLog(char *pMessage,unsigned char *pBuffer,int iBufLen);void UnionPrintf(char *,...);void UnionNullLog(char *,...);#endif

⌨️ 快捷键说明

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