⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mbbase.h

📁 基于嵌入式linux下
💻 H
字号:
/*   File name : mbbase.h   Content   : basic funtion   Author    : mubin   Date      : 2004-06-03*/#ifndef  USE_MBBASE_H_#define  USE_MBBASE_H_#include <time.h>#include <stdio.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include <errno.h>//#include "bkbase.h"//#include "bkipc.h"//#include "fininit.h"extern int errno;#define	MAXLEN		1024#define SEQ_CACHE	10#define SEQ_MAX		999999#define INVOICE_CACHE	1#define INVOICE_MAX	999999#define  MB_EMPTY_STRING           ""#define  MB_TAB                    '\t'#define  MB_EOS                    '\0'#define  MB_NEWLINE                '\n'#ifdef MB_DEBUG   extern void MbAssert(char *FileName,int LineNo);   #define MB_ASSERT(f) \      if( f ) \         MbDoNothing(); \      else \         MbAssert(__FILE__,__LINE__)   #define MB_DEB(...) MbDeb(__FILE__, __LINE__, __VA_ARGS__)#else   #define MB_ASSERT(f) MbDoNothing()   #define MB_DEB(...)  MbDoNothing()#endif#define MB_CLEAR(x)		memset(&(x), sizeof(x))#define MB_PRT(...) MbPrt(__FILE__, __LINE__, __VA_ARGS__)#define MB_ERR(...) MbErr(__FILE__, __LINE__, __VA_ARGS__)#define MB_SYS_ERR(...) MbSysErr(__FILE__, __LINE__, errno ,__VA_ARGS__)void MbDump(unsigned char *data, int count);void MbDumpStr(char *data, int count);int MbGetSeqNo(char *FileName);int MbGetInvoiceNo(char *FileName);/* 取本地时间 */extern void MbLocalTime(time_t *t, struct tm *tm);/* 取本地今天日期 */void MbToday(char *s);/* 将金额转换成大写字符串 */extern void MbCapAmt(double amt, char *s, int MaxLen);#endif

⌨️ 快捷键说明

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