C/C++ 分割字符并返回字符数组实例
C/C++ 分割字符并返回字符数组实例
用法1:
char* f_ext="cun_xzdw.wl";
char **strArray=GetStrArray(f_ext,".");
int tlen=atoi(strArray[0]);
ShowMsg(strArray[1]); //表示获取到的cun_xzdw字符串
用法2:
char* Lfilename="d:\\cun_xzdw.wl";
char* t_fname=getfilenameNoExt_lc(Lfilename,"\\");
//t_fname="cun_xzdw";
---the--end--
---vp:hsg
---create date:2012-04-19--