📄 smbsstring.h
字号:
#ifndef BsString_H #define BsString_H #include <stdio.h> #include <string.h> #define ERROR_LENGTHISZERO 1 #define ERROR_LENGTHINVALID 2 #define ERROR_EXCESSMAXLENGTH 3 /* as above,but only get the length of string with string*/int SubStringV3(const char * OriString,const char * StartToken, const char * EndToken, const int MaxNewStringfLenth,char NewString[]); //flush leftvoid strLeftTrim( char buffer[] );//flush rightvoid strRightTrim( char buffer[] );//clean the left and right bank void strTrim(char buffer[]);//convert the valuestring to unsigned decimalistint BsAtoU(char * ValueString);// convert the int value to stringvoid BsItoa(const int value,char Buffer[]); int my_strchr(char str [ ], char str1 [ ], char ch);int getmark(char buf [ ], char ch);void Copy_String(char buf1 [ ], char buf2 [ ], int len);void Read_to_File(char * filename, char buf [ ], int mode);/*clear buffer left blank*/void strTrimlf(char buffer [ ]);/*read a line conten from file everytime*/int FileGetLine(FILE * fp, char * buffer, int maxlen);/*construct file full path on ftp server,eg:1440306100002_00.avi:path=/1440/30/1440306100002_00.avi*/void getpath(char buff [ ], int maxnum, char pathname [ ]);extern int ConfigGetKey(char * CFG_file, void * section, void * key, char buf[]);extern int ConfigSetKey(char * CFG_file, void * section, void * key, void * buf); #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -