mbbase.h
来自「本程序为在linux下实现FTP传输文件的实现」· C头文件 代码 · 共 79 行
H
79 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?