public.h
来自「通信BOSS计费方面的服务器源码,有很多经典的创意,值得借鉴,在UNIX上运行.」· C头文件 代码 · 共 104 行
H
104 行
#ifndef __PUBLIC_H#define __PUBLIC_H#include <stdio.h>#include <stdlib.h>#include <string.h>#include <userlog.h>#include <atmi.h>#include <fml32.h>#include <time.h>//#include <unistd.h>#ifndef BOOL #define BOOL int#endif#ifndef TRUE #define TRUE 1#endif#ifndef FALSE #define FALSE 0#endifint is_number(char* pStr); //数字类型判断char * ltrim(char * pStr); //去掉左边空格char * rtrim(char * pStr); //去掉右边空格void GetProfileString(char *filename,char *areaname,char *keyname,char *keydata); //提取参数文件int GetInputParm(char *pstr,char *pt[],int maxlen); //分解传入参数void lpfree(char *pt[],int num); //释放内存空间long GetRowCol(char *pstr,long *row,long *col);long GetMulRowData(char *pstr,char *lparm[],long *row,long *col,int maxlen);int GetParmByAny(char *pstr,char **lparm,char ch,int maxlen);int CallServByStr(char *serv_name,char *instr,char *outstr[]); //终端通过string方式调用服务int CallServAsynByStr(char *serv_name,char *instr,char *outstr[]); //终端通过string方式调用服务char *GetSubStr(char *pstr,long start,long *pos,char ch);char *itoch(char *tp,int i);char *ltoch(char *tp,long i);char *ftoch(char *tp,char *fmt,double f);void BeginPrint(); //终端打印开始向打印机输出void EndPrint(); //终端打印结束向打印机输出void BeginPrint_NOAUTO(); //终端打印开始向打印机输出void EndPrint_NOAUTO(); //终端打印结束向打印机输出void MidOfStr(char* outstr, char* instr, int pos, int count); //函数:用于从字符串中导出某位置开始指定数量的字符串void DigitalToCapital(double number, int cntype, char* outstr); //转换人民币小写为大写void reverse(char * pStr);void YhCrypt(char *pDst,char *pSrc);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?